@@ -104,11 +104,17 @@ jobs:
104104 for (const os of ['ubuntu-latest', 'macos-13', 'windows-latest']) {
105105 for (const test of tests) {
106106 if (test === 'docker/install.test.itg.ts') {
107- includes.push({ os: os, test: test, docker_install_type: 'image', docker_install_version: '27.3.1' });
108- includes.push({ os: os, test: test, docker_install_type: 'image', docker_install_version: 'master' });
109- includes.push({ os: os, test: test, docker_install_type: 'image', docker_install_version: 'latest' });
110- includes.push({ os: os, test: test, docker_install_type: 'archive', docker_install_version: 'v26.1.4' });
111- includes.push({ os: os, test: test, docker_install_type: 'archive', docker_install_version: 'latest' });
107+ includes.push({ os: os, test: test, test_name: 'root', docker_install_type: 'image', docker_install_version: '27.3.1' });
108+ includes.push({ os: os, test: test, test_name: 'root', docker_install_type: 'image', docker_install_version: 'master' });
109+ includes.push({ os: os, test: test, test_name: 'root', docker_install_type: 'image', docker_install_version: 'latest' });
110+ includes.push({ os: os, test: test, test_name: 'root', docker_install_type: 'archive', docker_install_version: 'v26.1.4' });
111+ includes.push({ os: os, test: test, test_name: 'root', docker_install_type: 'archive', docker_install_version: 'latest' });
112+ if (os === 'ubuntu-latest') {
113+ includes.push({ os: os, test: test, test_name: 'rootless', docker_install_type: 'image', docker_install_version: 'latest' });
114+ includes.push({ os: os, test: test, test_name: 'rootless', docker_install_type: 'archive', docker_install_version: 'latest' });
115+ }
116+ includes.push({ os: os, test: test, test_name: 'tcp', docker_install_type: 'image', docker_install_version: 'latest' });
117+ includes.push({ os: os, test: test, test_name: 'tcp', docker_install_type: 'archive', docker_install_version: 'latest' });
112118 } else {
113119 includes.push({ os: os, test: test });
114120 }
@@ -176,8 +182,16 @@ jobs:
176182 run : yarn install
177183 -
178184 name : Test
179- run : |
180- yarn test:itg-coverage --runTestsByPath __tests__/${{ matrix.test }} --coverageDirectory=./coverage
185+ uses : actions/github-script@v7
186+ with :
187+ script : |
188+ const testName = `${{ matrix.test_name }}`;
189+ let args = ['test:itg-coverage'];
190+ if (testName) {
191+ args.push(`--testNamePattern=^${testName} `);
192+ }
193+ args.push(`--runTestsByPath`, `__tests__/${{ matrix.test }}`, `--coverageDirectory=./coverage`);
194+ await exec.exec('yarn', args);
181195 env :
182196 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
183197 CTN_BUILDER_NAME : ${{ steps.builder.outputs.name }}
0 commit comments