Skip to content

Commit

Permalink
ci: Split integration tests into separate jobs
Browse files Browse the repository at this point in the history
Signed-off-by: Brian Goff <[email protected]>
  • Loading branch information
cpuguy83 committed Dec 21, 2024
1 parent fb56bc9 commit bf0c80a
Showing 1 changed file with 25 additions and 2 deletions.
27 changes: 25 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,25 @@ jobs:
exit 1
fi
integration:
runs-on: ubuntu-22.04
strategy:
matrix:
filter:
- Mariner2
- Azlinux3
- Bookworm
- Bullseye
- Bionic
- Focal
- Jammy
- Noble
- Windows
- ""
include:
- filter: ""
exclude: Mariner2|Azlinux3|Bookworm|Bullseye|Bionic|FOcal|Jammy|Noble|Windows

# TODO: support diff/merge
# Right now this is handled by the e2e suite, but we can migrate that here.
steps:
Expand Down Expand Up @@ -111,7 +127,14 @@ jobs:
- name: download deps
run: go mod download
- name: Run integration tests
run: go test -v -json --parallel 128 ./test | go run ./cmd/test2json2gha --slow 5s
run: |
if [ -n "${{matrix.include }} ]; then
run="-run ${{matrix.include}}"
fi
if [ -n "${{matrix.exclude}}" ]; then
skip="-skip "${{matrix.exclude}}"
fi
go test -v -json --parallel 128 ${run} ${skip} ./test | go run ./cmd/test2json2gha --slow 5s
- name: dump logs
if: failure()
run: sudo journalctl -u docker
Expand Down

0 comments on commit bf0c80a

Please sign in to comment.