diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 61af795..557d3e3 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: + 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 @@ -78,10 +82,33 @@ jobs: steps: - name: Checkout uses: actions/checkout@v4 + with: + path: main + - name: Fetch slurmd + uses: actions/checkout@v4 + if: ${{ matrix.local }} + with: + repository: charmed-hpc/slurmd-operator + path: slurmd-operator + - name: Fetch slurmdbd + uses: actions/checkout@v4 + if: ${{ matrix.local }} + with: + repository: charmed-hpc/slurmdbd-operator + path: slurmdbd-operator + - name: Fetch slurmrestd + uses: actions/checkout@v4 + if: ${{ matrix.local }} + with: + repository: charmed-hpc/slurmrestd-operator + path: slurmrestd-operator - name: Setup operator environment uses: charmed-kubernetes/actions-operator@main with: provider: lxd juju-channel: 3.1/stable - name: Run tests - run: tox run -e integration -- --charm-base=${{ matrix.bases }} + run: | + cd main && tox run -e integration -- \ + --charm-base=${{ matrix.bases }} \ + ${{ matrix.local && '--use-local' || '' }} diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index dc0a8a2..f060d34 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -32,10 +32,10 @@ jobs: - name: Checkout uses: actions/checkout@v3 - name: Select charmhub channel - uses: canonical/charming-actions/channel@2.2.0 + uses: canonical/charming-actions/channel@2.5.0-rc id: channel - name: Upload charm to charmhub - uses: canonical/charming-actions/upload-charm@2.2.0 + uses: canonical/charming-actions/upload-charm@2.5.0-rc with: credentials: "${{ secrets.CHARMCRAFT_AUTH }}" github-token: "${{ secrets.GITHUB_TOKEN }}"