chore(deps): update canonical/operator-workflows digest to 5be9f4f #939
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: | |
extra-args: | |
runs-on: ubuntu-latest | |
outputs: | |
args: ${{ steps.flags.outputs.args }} | |
steps: | |
- name: Determine extra args | |
id: flags | |
env: | |
TITLE: ${{ github.event.pull_request.title }} | |
JOB: ${{ github.job }} | |
WORKFLOW: ${{ github.workflow }} | |
run: | | |
EXTRA_ARGS="--crash-dump=on-failure" | |
if [[ "$TITLE" == *"[COS]"* ]]; then | |
EXTRA_ARGS="$EXTRA_ARGS --cos" | |
fi | |
echo "args=$EXTRA_ARGS" >> "$GITHUB_OUTPUT" | |
build-all-charms: | |
needs: [extra-args] | |
strategy: | |
matrix: | |
path: | |
- "./charms/worker/k8s/" | |
- "./charms/worker/" | |
uses: ./.github/workflows/build-charm.yaml | |
with: | |
working-directory: ${{ matrix.path }} | |
integration-tests: | |
uses: canonical/operator-workflows/.github/workflows/integration_test.yaml@5be9f4ff5c4c41aedcb192adc9013d8e670d87b8 | |
needs: [build-all-charms, extra-args] | |
strategy: | |
matrix: | |
suite: ["k8s", "etcd"] | |
secrets: inherit | |
with: | |
provider: lxd | |
juju-channel: 3/stable | |
extra-arguments: ${{needs.extra-args.outputs.args}} -k test_${{ matrix.suite }} | |
load-test-enabled: false | |
zap-enabled: false | |
self-hosted-runner: true | |
self-hosted-runner-label: "large" | |
trivy-fs-enabled: true | |
trivy-image-config: "trivy.yaml" | |
tmate-debug: true | |
test-timeout: 120 | |
test-tox-env: integration-${{ matrix.suite }} |