Add Nightly CI Job for Terraform-Based Deployment and Testing #26
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |