Skip to content

Commit d16a519

Browse files
authored
Merge pull request #23 from Xwilarg/ci-bug-fix
fix tests double running in ci
2 parents 56f77b4 + 09b8557 commit d16a519

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

.github/workflows/CI.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,12 @@ jobs:
1717
with:
1818
node-version: 18
1919
- run: npm install
20-
- run: npm test
20+
- run: npm run coverage
2121
- run: npm run build
2222
- uses: actions/upload-artifact@v2
2323
with:
2424
name: Chessweeper
2525
path: ./build
26-
- run: npm run coverage
2726
- name: Upload coverage to Codacy
2827
uses: codacy/codacy-coverage-reporter-action@master
2928
with:

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"preview": "vite preview",
1212
"build": "tsc && vite build",
1313
"test": "vitest",
14-
"coverage": "vitest run --coverage",
14+
"coverage": "vitest --coverage",
1515
"format": "npx prettier --write .",
1616
"lint": "eslint . --ext .ts,.tsx,.js,.jsx",
1717
"tsc": "tsc --noEmit"

0 commit comments

Comments
 (0)