Skip to content

Commit 905b4ae

Browse files
committed
ci: require all tests passing in CI
1 parent d69baf8 commit 905b4ae

File tree

3 files changed

+8
-9
lines changed

3 files changed

+8
-9
lines changed

.github/workflows/CI.yml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -155,13 +155,8 @@ jobs:
155155

156156
- name: Test
157157
if: ${{ !matrix.dockerfile }}
158-
uses: nick-fields/retry@v3
159-
with:
160-
timeout_minutes: 5
161-
max_attempts: 1
162-
command: |
163-
pnpm run test.unit
164-
continue-on-error: true
158+
run: |
159+
pnpm run test.unit
165160
166161
- name: Clean Tmp
167162
run: rm -rf ./tmp

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@
109109
"test.unit.debug": "run-s clean.temp build.debug && mocha ./test/unit/*-test.ts",
110110
"test.unit.compat": "run-s clean.temp build && cross-env INCLUDE_COMPAT_TESTS=true mocha ./test/unit/compat/*-test.ts",
111111
"test.unit.nogc": "run-s clean.temp build && cross-env SKIP_GC_TESTS=true mocha",
112-
"test.electron.main": "run-s clean.temp build && electron-mocha ./test/unit/*-test.ts",
112+
"test.electron.main": "run-s clean.temp build && cross-env SKIP_GC_TESTS=true electron-mocha ./test/unit/*-test.ts",
113113
"test.electron.renderer": "run-s build && electron-mocha --renderer ./test/unit/*-test.ts",
114114
"test.smoke": "bash ./script/smoke-test.bash",
115115
"format": "run-s format.prettier format.clang-format",

test/unit/typings-compatibility-test.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,11 @@ describe("compatibility of typings for typescript versions", async function () {
129129
})
130130

131131
afterEach(async () => {
132-
await remove(tscTargetPath)
132+
try {
133+
await remove(tscTargetPath)
134+
} catch (err) {
135+
console.error(`Failed to remove ${tscTargetPath}:`, err)
136+
}
133137
})
134138
}
135139
})

0 commit comments

Comments
 (0)