feat: base image config #664
Workflow file for this run
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: integration-tests | |
on: | |
pull_request: | |
jobs: | |
# test option values defined at test/conftest.py are passed on via repository secret | |
# INTEGRATION_TEST_ARGS to operator-workflows automatically. | |
integration-tests-juju2: | |
name: Integration test with juju 2.9 | |
uses: canonical/operator-workflows/.github/workflows/integration_test.yaml@main | |
secrets: inherit | |
with: | |
juju-channel: 2.9/stable | |
pre-run-script: scripts/pre-integration-test.sh | |
provider: lxd | |
test-tox-env: integration-juju2.9 | |
modules: '["test_charm_base_image", "test_charm_fork_repo", "test_charm_no_runner", "test_charm_scheduled_events", "test_charm_one_runner", "test_charm_metrics_success", "test_charm_metrics_failure", "test_self_hosted_runner", "test_charm_with_proxy", "test_charm_with_juju_storage", "test_debug_ssh"]' | |
integration-tests: | |
name: Integration test with juju 3.1 | |
uses: canonical/operator-workflows/.github/workflows/integration_test.yaml@main | |
secrets: inherit | |
with: | |
juju-channel: 3.1/stable | |
pre-run-script: scripts/pre-integration-test.sh | |
provider: lxd | |
test-tox-env: integration-juju3.1 | |
modules: '["test_charm_base_image", "test_charm_fork_repo", "test_charm_no_runner", "test_charm_scheduled_events", "test_charm_one_runner", "test_charm_metrics_success", "test_charm_metrics_failure", "test_self_hosted_runner", "test_charm_with_proxy", "test_charm_with_juju_storage", "test_debug_ssh"]' | |
# openstack tests use microstack, whose setup is kind of special | |
# - due to the huge resource requirements, we use self-hosted runners for these tests | |
# - microstack requires juju 3.2 and microk8s 1.26 | |
# - microk8s needs to be preconfigured with the actions operator to work properly with the dockerhub cache | |
# - we need to disable the rbac addon for microk8s, otherwise the setup will fail | |
integration-tests-microstack: | |
name: Integration test using microstack | |
uses: canonical/operator-workflows/.github/workflows/integration_test.yaml@main | |
secrets: inherit | |
with: | |
juju-channel: 3.2/stable | |
pre-run-script: scripts/setup-microstack.sh | |
provider: microk8s | |
channel: 1.26-strict/stable | |
microk8s-addons: "dns ingress hostpath-storage" | |
test-tox-env: integration-juju3.2 | |
modules: '["test_openstack_base_image", "test_openstack_one_runner"]' | |
self-hosted-runner: true | |
self-hosted-runner-label: two-xlarge |