Skip to content

Commit 0222bcc

Browse files
committed
test: update vitest run in serial opt
1 parent 101548d commit 0222bcc

4 files changed

Lines changed: 4 additions & 4 deletions

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
- run: npm ci
3131
- run: npm run format:check
3232
- run: npm run lint
33-
- run: npm run ci-test
33+
- run: npm test
3434

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

.github/workflows/coverage.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
cache: npm
2020

2121
- run: npm ci
22-
- run: npm run ci-test -- --coverage
22+
- run: npm test -- --coverage
2323

2424
- name: Upload results to Codecov
2525
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: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ export default defineConfig({
55
environment: 'node',
66
testTimeout: 5000,
77
include: ['__tests__/**/*.test.ts'],
8+
singleFork: !!process.env.CI,
89
coverage: {
910
include: ['src/**/*.ts'],
1011
reportsDirectory: 'coverage',

0 commit comments

Comments
 (0)