Skip to content

Add tutorial Spread test #4504

Add tutorial Spread test

Add tutorial Spread test #4504

name: Integration tests
on:
pull_request:
jobs:
check-changes:
runs-on: ubuntu-latest
outputs:
run_tests: ${{ steps.set-output.outputs.run_tests }}
steps:
- uses: actions/checkout@v6
- uses: tj-actions/changed-files@v47.0.1
id: changed-files
- name: Set output if non-terraform files changed
id: set-output
run: |
echo "run_tests=false" >> "$GITHUB_OUTPUT"
for file in ${{ steps.changed-files.outputs.all_changed_files }}; do
if [[ "$file" != terraform/* ]]; then
echo "run_tests=true" >> "$GITHUB_OUTPUT"
break
fi
done
integration-tests:
if: needs.check-changes.outputs.run_tests == 'true'
needs: check-changes
uses: canonical/operator-workflows/.github/workflows/integration_test.yaml@main
secrets: inherit
with:
extra-arguments: -x --localstack-address 172.17.0.1
pre-run-script: localstack-installation.sh
trivy-image-config: "trivy.yaml"
trivy-exit-code: 0
juju-channel: 3.6/stable
channel: 1.34-strict/stable
modules: '["test_charm", "test_scaling", "test_s3"]'
with-uv: true
allure-report:
if: always() && !cancelled()
needs:
- integration-tests
uses: canonical/operator-workflows/.github/workflows/allure_report.yaml@main