Skip to content

Commit

Permalink
Revert "ci: refactor to test matrix"
Browse files Browse the repository at this point in the history
This reverts commit a50c834.
  • Loading branch information
trfore committed Jul 3, 2024
1 parent a0ec7b1 commit 4349cc0
Showing 1 changed file with 15 additions and 16 deletions.
31 changes: 15 additions & 16 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,30 +16,29 @@ concurrency:
cancel-in-progress: true

jobs:
test:
strategy:
fail-fast: false
matrix:
include:
- continue-on-error: true
runner: ubuntu-20.04
volume-permission: ro
- continue-on-error: false
runner: ubuntu-22.04
volume-permission: rw
cgroup-v1:
uses: trfore/docker-image/.github/workflows/test_systemd.yml@main
with:
continue-on-error: ${{ matrix.continue-on-error }}
runner: ${{ matrix.runner }}
volume-permission: ${{ matrix.volume-permission }}
continue-on-error: true
runner: ubuntu-20.04
volume-permission: ro

cgroup-v2:
uses: trfore/docker-image/.github/workflows/test_systemd.yml@main
with:
continue-on-error: false
runner: ubuntu-22.04
volume-permission: rw

check:
if: always() && failure()
needs:
- test
- cgroup-v1
- cgroup-v2
runs-on: ubuntu-latest
steps:
- run: >-
python -c "assert set([
'${{ needs.test.result }}',
'${{ needs.cgroup-v1.result }}',
'${{ needs.cgroup-v2.result }}',
]) == {'success'}"

0 comments on commit 4349cc0

Please sign in to comment.