Skip to content

Commit 8effe23

Browse files
committed
test: update vitest run in serial opt
1 parent c68bc88 commit 8effe23

4 files changed

Lines changed: 8 additions & 4 deletions

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
- run: npm ci
3232
- run: npm run format:check
3333
- run: npm run lint
34-
- run: npm run ci-test
34+
- run: npm test
3535

3636
test-action-basic:
3737
name: GitHub Actions Test (Basic)

.github/workflows/coverage.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121

2222
- run: npm ci
2323

24-
- run: npm run ci-test -- --coverage
24+
- run: npm test -- --coverage
2525

2626
- name: Upload results to Codecov
2727
uses: codecov/codecov-action@v6

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,7 @@
2121
"lint": "npx eslint 'src/**/*.ts'",
2222
"format:write": "npx prettier --write .",
2323
"format:check": "npx prettier --check .",
24-
"test": "vitest run",
25-
"ci-test": "vitest run --singleFork"
24+
"test": "vitest run"
2625
},
2726
"homepage": "https://github.com/ryancyq/github-signed-commit#readme",
2827
"dependencies": {

vitest.config.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ export default defineConfig({
55
environment: 'node',
66
testTimeout: 5000,
77
include: ['__tests__/**/*.test.ts'],
8+
poolOptions: {
9+
forks: {
10+
singleFork: !!process.env.CI,
11+
},
12+
},
813
coverage: {
914
include: ['src/**/*.ts'],
1015
reportsDirectory: 'coverage',

0 commit comments

Comments
 (0)