Skip to content

Commit 4907a6b

Browse files
committed
ci(test): allow failure for docker install on macos
Signed-off-by: CrazyMax <[email protected]>
1 parent d727f06 commit 4907a6b

File tree

1 file changed

+12
-10
lines changed

1 file changed

+12
-10
lines changed

.github/workflows/test.yml

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -109,22 +109,23 @@ jobs:
109109
for (const os of ['ubuntu-latest', 'ubuntu-24.04-arm', 'macos-15-intel', 'windows-latest']) {
110110
for (const test of tests) {
111111
if (test === 'docker/install.test.itg.ts') {
112+
const allowFailure = os.startsWith('macos');
112113
if (os !== 'windows-latest') {
113-
includes.push({ os: os, test: test, test_name: 'root', docker_install_type: 'image', docker_install_version: '27.3.1' });
114-
includes.push({ os: os, test: test, test_name: 'root', docker_install_type: 'image', docker_install_version: 'master' });
115-
includes.push({ os: os, test: test, test_name: 'root', docker_install_type: 'image', docker_install_version: 'latest' });
114+
includes.push({ os: os, test: test, test_name: 'root', docker_install_type: 'image', docker_install_version: '27.3.1', allow_failure: allowFailure });
115+
includes.push({ os: os, test: test, test_name: 'root', docker_install_type: 'image', docker_install_version: 'master', allow_failure: allowFailure });
116+
includes.push({ os: os, test: test, test_name: 'root', docker_install_type: 'image', docker_install_version: 'latest', allow_failure: allowFailure });
116117
}
117-
includes.push({ os: os, test: test, test_name: 'root', docker_install_type: 'archive', docker_install_version: 'v26.1.4' });
118-
includes.push({ os: os, test: test, test_name: 'root', docker_install_type: 'archive', docker_install_version: 'latest' });
119-
includes.push({ os: os, test: test, test_name: 'root', docker_install_type: 'archive', docker_install_version: 'v29.0.0-rc.1', docker_install_channel: 'test' });
118+
includes.push({ os: os, test: test, test_name: 'root', docker_install_type: 'archive', docker_install_version: 'v26.1.4', allow_failure: allowFailure });
119+
includes.push({ os: os, test: test, test_name: 'root', docker_install_type: 'archive', docker_install_version: 'latest', allow_failure: allowFailure });
120+
includes.push({ os: os, test: test, test_name: 'root', docker_install_type: 'archive', docker_install_version: 'v29.0.0-rc.1', docker_install_channel: 'test', allow_failure: allowFailure });
120121
if (os === 'ubuntu-latest') {
121-
includes.push({ os: os, test: test, test_name: 'rootless', docker_install_type: 'image', docker_install_version: 'latest' });
122-
includes.push({ os: os, test: test, test_name: 'rootless', docker_install_type: 'archive', docker_install_version: 'latest' });
122+
includes.push({ os: os, test: test, test_name: 'rootless', docker_install_type: 'image', docker_install_version: 'latest', allow_failure: allowFailure });
123+
includes.push({ os: os, test: test, test_name: 'rootless', docker_install_type: 'archive', docker_install_version: 'latest', allow_failure: allowFailure });
123124
}
124125
if (os !== 'windows-latest') {
125-
includes.push({ os: os, test: test, test_name: 'tcp', docker_install_type: 'image', docker_install_version: 'latest' });
126+
includes.push({ os: os, test: test, test_name: 'tcp', docker_install_type: 'image', docker_install_version: 'latest', allow_failure: allowFailure });
126127
}
127-
includes.push({ os: os, test: test, test_name: 'tcp', docker_install_type: 'archive', docker_install_version: 'latest' });
128+
includes.push({ os: os, test: test, test_name: 'tcp', docker_install_type: 'archive', docker_install_version: 'latest', allow_failure: allowFailure });
128129
} else {
129130
includes.push({ os: os, test: test });
130131
}
@@ -140,6 +141,7 @@ jobs:
140141
141142
test-itg:
142143
runs-on: ${{ matrix.os }}
144+
continue-on-error: ${{ matrix.allow_failure }}
143145
needs:
144146
- prepare-itg
145147
strategy:

0 commit comments

Comments
 (0)