@@ -25,34 +25,24 @@ jobs:
25
25
run : tox -e gitlint
26
26
test :
27
27
runs-on : ubuntu-latest
28
+ strategy :
29
+ matrix :
30
+ test_distro : ["fedora-37", "fedora-38", "centos-stream9"]
31
+ include :
32
+ - test_distro : " fedora-37"
33
+ base_image : " registry.fedoraproject.org/fedora:37"
34
+ - test_distro : " fedora-38"
35
+ base_image : " registry.fedoraproject.org/fedora:38"
36
+ - test_distro : " centos-stream9"
37
+ base_image : " quay.io/centos/centos:stream9"
28
38
steps :
29
39
- uses : actions/checkout@v3
30
40
with :
31
41
fetch-depth : 0
32
42
- name : Build test container
33
- run : docker build -t sambacc:ci tests/container/ -f tests/container/Containerfile
43
+ run : docker build -t sambacc:ci-${{ matrix.test_distro }} --build-arg=SAMBACC_BASE_IMAGE=${{ matrix.base_image }} tests/container/ -f tests/container/Containerfile
34
44
- name : Run test container
35
- run : docker run -v $PWD:/var/tmp/build/sambacc sambacc:ci
36
- test-centos-stream9 :
37
- runs-on : ubuntu-latest
38
- steps :
39
- - uses : actions/checkout@v3
40
- with :
41
- fetch-depth : 0
42
- - name : Build test container
43
- run : docker build --build-arg=SAMBACC_BASE_IMAGE=quay.io/centos/centos:stream9 -t sambacc:ci-cs9 tests/container/ -f tests/container/Containerfile
44
- - name : Run test container
45
- run : docker run -v $PWD:/var/tmp/build/sambacc sambacc:ci-cs9
46
- test-fedora37 :
47
- runs-on : ubuntu-latest
48
- steps :
49
- - uses : actions/checkout@v3
50
- with :
51
- fetch-depth : 0
52
- - name : Build test container
53
- run : docker build --build-arg=SAMBACC_BASE_IMAGE=registry.fedoraproject.org/fedora:37 -t sambacc:ci-fc37 tests/container/ -f tests/container/Containerfile
54
- - name : Run test container
55
- run : docker run -v $PWD:/var/tmp/build/sambacc sambacc:ci-fc37
45
+ run : docker run -v $PWD:/var/tmp/build/sambacc sambacc:ci-${{ matrix.test_distro }}
56
46
57
47
push :
58
48
needs : [test]
0 commit comments