Skip to content

Commit c2fb308

Browse files
committed
chore: run podman after docker
This will reduce the number of concurrent workers, still running podman
1 parent 9e5dec0 commit c2fb308

File tree

1 file changed

+24
-8
lines changed

1 file changed

+24
-8
lines changed

.github/workflows/test.yml

Lines changed: 24 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -119,17 +119,32 @@ jobs:
119119
matrix:
120120
module: ${{ fromJSON(needs.detect-modules.outputs.modules) }}
121121
node-version: [ 18.x, 20.x, 22.x ]
122-
container-runtime: [ docker, podman ]
123-
include:
124-
- container-runtime: docker
125-
runner: ubuntu-22.04
126-
- container-runtime: podman
127-
runner: ubuntu-22.04
128122
uses: ./.github/workflows/test-template.yml
129123
with:
130-
runner: ${{ matrix.runner }}
124+
runner: ubuntu-22.04
131125
node-version: ${{ matrix.node-version }}
132-
container-runtime: ${{ matrix.container-runtime }}
126+
container-runtime: docker
127+
workspace: "${{ matrix.module }}"
128+
129+
test-podman:
130+
name: Run tests
131+
# only run if there are modules to test
132+
if: ${{ needs.detect-modules.outputs.modules_count > 0 }}
133+
needs:
134+
- detect-modules
135+
- lint
136+
- smoke-test
137+
- test
138+
strategy:
139+
fail-fast: false
140+
matrix:
141+
module: ${{ fromJSON(needs.detect-modules.outputs.modules) }}
142+
node-version: [ 18.x, 20.x, 22.x ]
143+
uses: ./.github/workflows/test-template.yml
144+
with:
145+
runner: ubuntu-22.04
146+
node-version: ${{ matrix.node-version }}
147+
container-runtime: podman
133148
workspace: "${{ matrix.module }}"
134149

135150
# This job serves as confirmation that all test jobs finished
@@ -140,6 +155,7 @@ jobs:
140155
- lint
141156
- smoke-test
142157
- test
158+
- test-podman
143159
runs-on: ubuntu-latest
144160
steps:
145161
- name: Check if any jobs failed

0 commit comments

Comments
 (0)