From 2929cd158753b2c73db22b4724e5fef6559984e1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Juli=C3=A1n=20Espina?= Date: Wed, 17 Jul 2024 12:36:29 -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 b6de20a..a6b7653 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -64,12 +64,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 @@ -82,6 +86,7 @@ jobs: path: main - name: Fetch slurmctld uses: actions/checkout@v4 + if: ${{ matrix.local }} with: repository: charmed-hpc/slurmctld-operator path: slurmctld-operator @@ -91,4 +96,7 @@ jobs: provider: lxd juju-channel: 3.4/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' || '' }}