Skip to content

Add Nightly CI Job for Terraform-Based Deployment and Testing #26

Add Nightly CI Job for Terraform-Based Deployment and Testing

Add Nightly CI Job for Terraform-Based Deployment and Testing #26

Workflow file for this run

name: Nightly Tests
on:
schedule:
- cron: "0 0 * * *" # Runs every midnight
pull_request:
paths:
- .github/workflows/nightly.yaml
permissions:
contents: read
jobs:
integration-tests-terraform:
runs-on: self-hosted-linux-amd64-noble-large
steps:
- name: Setup operator environment
uses: charmed-kubernetes/actions-operator@main
with:
provider: lxd
channel: latest/stable
juju-channel: 3/stable
- name: Checking out repo
uses: actions/checkout@v4
- name: Terraform setup
run: |
echo "Setting up the cluster with Terraform"
python3 ${{ github.workspace }}/tests/integration/terraform_setup.py
- name: Run integration tests
run: |
tox -e integration -- -s -k test_nodes_ready --model my-canonical-k8s --no-deploy