Skip to content

Commit

Permalink
ci: require all tests passing in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
aminya committed Dec 30, 2024
1 parent d69baf8 commit 905b4ae
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 9 deletions.
9 changes: 2 additions & 7 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -155,13 +155,8 @@ jobs:

- name: Test
if: ${{ !matrix.dockerfile }}
uses: nick-fields/retry@v3
with:
timeout_minutes: 5
max_attempts: 1
command: |
pnpm run test.unit
continue-on-error: true
run: |
pnpm run test.unit
- name: Clean Tmp
run: rm -rf ./tmp
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@
"test.unit.debug": "run-s clean.temp build.debug && mocha ./test/unit/*-test.ts",
"test.unit.compat": "run-s clean.temp build && cross-env INCLUDE_COMPAT_TESTS=true mocha ./test/unit/compat/*-test.ts",
"test.unit.nogc": "run-s clean.temp build && cross-env SKIP_GC_TESTS=true mocha",
"test.electron.main": "run-s clean.temp build && electron-mocha ./test/unit/*-test.ts",
"test.electron.main": "run-s clean.temp build && cross-env SKIP_GC_TESTS=true electron-mocha ./test/unit/*-test.ts",
"test.electron.renderer": "run-s build && electron-mocha --renderer ./test/unit/*-test.ts",
"test.smoke": "bash ./script/smoke-test.bash",
"format": "run-s format.prettier format.clang-format",
Expand Down
6 changes: 5 additions & 1 deletion test/unit/typings-compatibility-test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,11 @@ describe("compatibility of typings for typescript versions", async function () {
})

afterEach(async () => {
await remove(tscTargetPath)
try {
await remove(tscTargetPath)
} catch (err) {
console.error(`Failed to remove ${tscTargetPath}:`, err)
}
})
}
})
Expand Down

0 comments on commit 905b4ae

Please sign in to comment.