@@ -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,10 @@ 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+ CACHE_DEV_SCOPE="${CACHE_DEV_SCOPE}nftables"
197+ fi
193198 echo "CACHE_DEV_SCOPE=${CACHE_DEV_SCOPE}" >> $GITHUB_ENV
194199 -
195200 name : Set up Docker Buildx
@@ -328,7 +333,7 @@ jobs:
328333 // 'include' with other matrix variables that aren't part of the
329334 // include items.
330335 // Moreover, since the goal is to run only relevant tests with
331- // firewalld enabled to minimize the number of CI jobs, we
336+ // firewalld/nftables enabled to minimize the number of CI jobs, we
332337 // statically define the list of test suites that we want to run.
333338 if ("${{ inputs.storage }}" == "snapshotter") {
334339 matrix.include.push({
@@ -343,6 +348,18 @@ jobs:
343348 'mode': 'firewalld',
344349 'test': 'DockerNetworkSuite'
345350 });
351+ matrix.include.push({
352+ 'mode': 'nftables',
353+ 'test': 'DockerCLINetworkSuite|DockerCLIPortSuite|DockerDaemonSuite'
354+ });
355+ matrix.include.push({
356+ 'mode': 'nftables',
357+ 'test': 'DockerSwarmSuite'
358+ });
359+ matrix.include.push({
360+ 'mode': 'nftables',
361+ 'test': 'DockerNetworkSuite'
362+ });
346363 }
347364 await core.group(`Set matrix`, async () => {
348365 core.info(`matrix: ${JSON.stringify(matrix)}`);
@@ -380,6 +397,10 @@ jobs:
380397 echo "FIREWALLD=true" >> $GITHUB_ENV
381398 CACHE_DEV_SCOPE="${CACHE_DEV_SCOPE}firewalld"
382399 fi
400+ if [[ "${{ matrix.mode }}" == *"nftables"* ]]; then
401+ echo "DOCKER_FIREWALL_BACKEND=nftables" >> $GITHUB_ENV
402+ CACHE_DEV_SCOPE="${CACHE_DEV_SCOPE}nftables"
403+ fi
383404 echo "CACHE_DEV_SCOPE=${CACHE_DEV_SCOPE}" >> $GITHUB_ENV
384405 -
385406 name : Set up Docker Buildx
@@ -437,7 +458,7 @@ jobs:
437458 if : always()
438459 uses : actions/upload-artifact@v4
439460 with :
440- name : test-reports-integration-cli-${{ inputs.storage }}-${{ env.TESTREPORTS_NAME }}
461+ name : test-reports-integration-cli-${{ inputs.storage }}-${{ matrix.mode }}-${{ env.TESTREPORTS_NAME }}
441462 path : /tmp/reports/*
442463 retention-days : 1
443464
@@ -460,7 +481,7 @@ jobs:
460481 uses : actions/download-artifact@v4
461482 with :
462483 path : /tmp/reports
463- pattern : test-reports-integration-cli-${{ inputs.storage }}-*
484+ pattern : test-reports-integration-cli-${{ inputs.storage }}-${{ matrix.mode }}- *
464485 merge-multiple : true
465486 -
466487 name : Install teststat
0 commit comments