@@ -145,6 +145,7 @@ jobs:
145145 ];
146146 if ("${{ inputs.storage }}" == "snapshotter") {
147147 includes.push({ os: 'ubuntu-24.04', mode: 'firewalld' });
148+ includes.push({ os: 'ubuntu-24.04', mode: 'nftables' });
148149 }
149150 await core.group(`Set matrix`, async () => {
150151 core.info(`matrix: ${JSON.stringify(includes)}`);
@@ -190,6 +191,9 @@ jobs:
190191 echo "FIREWALLD=true" >> $GITHUB_ENV
191192 CACHE_DEV_SCOPE="${CACHE_DEV_SCOPE}firewalld"
192193 fi
194+ if [[ "${{ matrix.mode }}" == *"nftables"* ]]; then
195+ echo "DOCKER_FIREWALL_BACKEND=nftables" >> $GITHUB_ENV
196+ fi
193197 echo "CACHE_DEV_SCOPE=${CACHE_DEV_SCOPE}" >> $GITHUB_ENV
194198 -
195199 name : Set up Docker Buildx
@@ -328,7 +332,7 @@ jobs:
328332 // 'include' with other matrix variables that aren't part of the
329333 // include items.
330334 // Moreover, since the goal is to run only relevant tests with
331- // firewalld enabled to minimize the number of CI jobs, we
335+ // firewalld/nftables enabled to minimize the number of CI jobs, we
332336 // statically define the list of test suites that we want to run.
333337 if ("${{ inputs.storage }}" == "snapshotter") {
334338 matrix.include.push({
@@ -343,6 +347,18 @@ jobs:
343347 'mode': 'firewalld',
344348 'test': 'DockerNetworkSuite'
345349 });
350+ matrix.include.push({
351+ 'mode': 'nftables',
352+ 'test': 'DockerCLINetworkSuite|DockerCLIPortSuite|DockerDaemonSuite'
353+ });
354+ matrix.include.push({
355+ 'mode': 'nftables',
356+ 'test': 'DockerSwarmSuite'
357+ });
358+ matrix.include.push({
359+ 'mode': 'nftables',
360+ 'test': 'DockerNetworkSuite'
361+ });
346362 }
347363 await core.group(`Set matrix`, async () => {
348364 core.info(`matrix: ${JSON.stringify(matrix)}`);
@@ -380,6 +396,9 @@ jobs:
380396 echo "FIREWALLD=true" >> $GITHUB_ENV
381397 CACHE_DEV_SCOPE="${CACHE_DEV_SCOPE}firewalld"
382398 fi
399+ if [[ "${{ matrix.mode }}" == *"nftables"* ]]; then
400+ echo "DOCKER_FIREWALL_BACKEND=nftables" >> $GITHUB_ENV
401+ fi
383402 echo "CACHE_DEV_SCOPE=${CACHE_DEV_SCOPE}" >> $GITHUB_ENV
384403 -
385404 name : Set up Docker Buildx
@@ -437,7 +456,7 @@ jobs:
437456 if : always()
438457 uses : actions/upload-artifact@v4
439458 with :
440- name : test-reports-integration-cli-${{ inputs.storage }}-${{ env.TESTREPORTS_NAME }}
459+ name : test-reports-integration-cli-${{ inputs.storage }}-${{ matrix.mode }}-${{ env.TESTREPORTS_NAME }}
441460 path : /tmp/reports/*
442461 retention-days : 1
443462
@@ -460,7 +479,7 @@ jobs:
460479 uses : actions/download-artifact@v4
461480 with :
462481 path : /tmp/reports
463- pattern : test-reports-integration-cli-${{ inputs.storage }}-*
482+ pattern : test-reports-integration-cli-${{ inputs.storage }}-${{ matrix.mode }}- *
464483 merge-multiple : true
465484 -
466485 name : Install teststat
0 commit comments