From 2973ef2ec7a5a58a7bff65ab079db95462e47800 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Juli=C3=A1n=20Espina?= Date: Wed, 17 Jul 2024 11:34:21 -0600 Subject: [PATCH] ci: test in CI against Charmhub (edge) --- .github/workflows/ci.yaml | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 2d60a51..237d7d7 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -65,12 +65,16 @@ jobs: integration-test: strategy: - fail-fast: true + fail-fast: false matrix: bases: - ubuntu@22.04 - name: Integration tests (LXD) | ${{ matrix.bases }} + local: [true, false] + name: Integration tests (LXD) ${{ matrix.local && '|' || '| Charmhub (edge) |'}} ${{ matrix.bases }} runs-on: ubuntu-latest + # Testing against Charmhub will probably yield errors when doing breaking changes, so don't + # block CI on that. + continue-on-error: ${{ !matrix.local }} needs: - inclusive-naming-check - lint @@ -83,6 +87,7 @@ jobs: path: main - name: Fetch slurmctld uses: actions/checkout@v4 + if: ${{ matrix.local }} with: repository: charmed-hpc/slurmctld-operator path: slurmctld-operator @@ -92,4 +97,7 @@ jobs: provider: lxd juju-channel: 3.1/stable - name: Run tests - run: cd main && tox run -e integration -- --charm-base=${{ matrix.bases }} --use-local + run: | + cd main && tox run -e integration -- \ + --charm-base=${{ matrix.bases }} \ + ${{ matrix.local && '--use-local' || '' }}