Skip to content

Commit fbcd4e4

Browse files
authored
Fix CI (#303)
1 parent 3098bda commit fbcd4e4

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

.github/workflows/continuous-integration.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,13 @@ jobs:
2222
- "ubuntu-latest"
2323
- "macos-latest"
2424
- "windows-latest"
25-
node_version:
25+
node:
26+
- "25"
27+
- "24"
2628
- "22"
2729
- "20"
2830
- "18"
29-
name: Node.js ${{ matrix.node_version }} on ${{ matrix.os }}
31+
name: Node.js ${{ matrix.node }} on ${{ matrix.os }}
3032
runs-on: ${{ matrix.os }}
3133
steps:
3234
- name: Checkout
@@ -35,7 +37,7 @@ jobs:
3537
- name: Setup Node.js
3638
uses: actions/setup-node@v6
3739
with:
38-
node-version: ${{ matrix.node_version }}
40+
node-version: ${{ matrix.node }}
3941

4042
- name: Install Dependencies
4143
run: yarn --immutable
@@ -44,6 +46,7 @@ jobs:
4446
run: yarn test
4547

4648
- uses: codecov/codecov-action@v5
49+
if: ${{ matrix.node != '18' }}
4750
with:
4851
fail_ci_if_error: true
4952
disable_search: true

vitest.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export default defineConfig({
66
include: ["**/tests/**/*.ts", "**/*.test.ts"],
77
snapshotSerializers: ["jest-snapshot-serializer-raw"],
88
coverage: {
9-
enabled: !!process.env.CI,
9+
enabled: !!process.env.CI && !/^v18\./.test(process.version),
1010
reporter: ["lcov", "text"],
1111
include: ["src/**/*.ts"],
1212
exclude: ["src/index.ts", "src/helpers.ts", "src/types.ts"],

0 commit comments

Comments
 (0)