Skip to content

feat: base image config #613

feat: base image config

feat: base image config #613

name: integration-tests
on:
pull_request:
env:
LXD_TEST_MODULES: >-
'["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_TEST_MODULES: >-
'["test_openstack"]'
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: ${{ env.LXD_TEST_MODULES }}

Check failure on line 27 in .github/workflows/integration_test.yaml

View workflow run for this annotation

GitHub Actions / integration-tests

Invalid workflow file

The workflow is not valid. .github/workflows/integration_test.yaml (Line: 27, Col: 16): Unrecognized named-value: 'env'. Located at position 1 within expression: env.LXD_TEST_MODULES .github/workflows/integration_test.yaml (Line: 37, Col: 16): Unrecognized named-value: 'env'. Located at position 1 within expression: env.LXD_TEST_MODULES
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: ${{ env.LXD_TEST_MODULES }}
# 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: ${{ env.OPENSTACK_TEST_MODULES }}
self-hosted-runner: true
self-hosted-runner-label: two-xlarge