Skip to content

Commit d25696c

Browse files
committed
Try fixing tests on CI.
1 parent a78864b commit d25696c

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

.github/workflows/node.js.yml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,18 @@ jobs:
1616

1717
steps:
1818
- uses: actions/checkout@v4
19-
- name: Use Node.js '23.x'
19+
- name: Set up Node.js version
2020
uses: actions/setup-node@v4
2121
with:
22-
node-version: '23.x'
23-
- run: npm ci
22+
node-version: '22.x'
23+
- uses: actions/cache@v4
24+
id: npm-cache
25+
with:
26+
path: '**/node_modules'
27+
key: ${{ runner.os }}-modules-${{ hashFiles('**/package-lock.json') }}-${{ secrets.NPM_CACHE_VERSION }}
28+
- name: Install dependencies
29+
if: steps.npm-cache.outputs.cache-hit != 'true'
30+
run: npm ci
2431
- run: npm run build --if-present
2532
- run: npm test
2633
- name: Coveralls

vitest.config.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ import { defineProject } from 'vitest/config';
1515
export default defineProject({
1616
test: {
1717
name: 'unit-tests',
18-
isolate: false,
1918
coverage: {
2019
reporter: ['html', 'lcov', 'text', 'json']
2120
}

0 commit comments

Comments
 (0)