Skip to content

Commit

Permalink
ci: split docker install by test name
Browse files Browse the repository at this point in the history
Signed-off-by: CrazyMax <[email protected]>
  • Loading branch information
crazy-max committed Dec 12, 2024
1 parent e908daf commit 1786d9b
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,11 +104,13 @@ jobs:
for (const os of ['ubuntu-latest', 'macos-13', 'windows-latest']) {
for (const test of tests) {
if (test === 'docker/install.test.itg.ts') {
includes.push({ os: os, test: test, docker_install_type: 'image', docker_install_version: '27.3.1' });
includes.push({ os: os, test: test, docker_install_type: 'image', docker_install_version: 'master' });
includes.push({ os: os, test: test, docker_install_type: 'image', docker_install_version: 'latest' });
includes.push({ os: os, test: test, docker_install_type: 'archive', docker_install_version: 'v26.1.4' });
includes.push({ os: os, test: test, docker_install_type: 'archive', docker_install_version: 'latest' });
for (const testName of ['root', 'rootless', 'tcp']) {
includes.push({ os: os, test: test, test_name: testName, docker_install_type: 'image', docker_install_version: '27.3.1' });
includes.push({ os: os, test: test, test_name: testName, docker_install_type: 'image', docker_install_version: 'master' });
includes.push({ os: os, test: test, test_name: testName, docker_install_type: 'image', docker_install_version: 'latest' });
includes.push({ os: os, test: test, test_name: testName, docker_install_type: 'archive', docker_install_version: 'v26.1.4' });
includes.push({ os: os, test: test, test_name: testName, docker_install_type: 'archive', docker_install_version: 'latest' });
}
} else {
includes.push({ os: os, test: test });
}
Expand Down Expand Up @@ -177,7 +179,11 @@ jobs:
-
name: Test
run: |
yarn test:itg-coverage --runTestsByPath __tests__/${{ matrix.test }} --coverageDirectory=./coverage
testNamePattern=""
if [ -n "${{ matrix.test_name }}" ]; then
testNamePattern=" --testNamePattern=${{ matrix.test_name }}"
fi
yarn test:itg-coverage --runTestsByPath __tests__/${{ matrix.test }}$testNamePattern --coverageDirectory=./coverage
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CTN_BUILDER_NAME: ${{ steps.builder.outputs.name }}
Expand Down

0 comments on commit 1786d9b

Please sign in to comment.