Skip to content

Commit

Permalink
chore: Run tests with coverage for upload to codecov
Browse files Browse the repository at this point in the history
Signed-off-by: Steve Dodier-Lazaro <[email protected]>
  • Loading branch information
Sidnioulz committed Sep 21, 2024
1 parent 4cb8152 commit 91a297e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ jobs:
- name: Install dependencies
run: pnpm install
- name: Run tests
run: pnpm test
run: pnpm test:coverage
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v4
with:
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
"lint": "turbo run lint",
"lint:fix": "turbo run lint:fix",
"test": "turbo run test",
"test:coverage": "turbo run test:coverage",
"typecheck": "turbo run typecheck"
},
"devDependencies": {
Expand Down
6 changes: 4 additions & 2 deletions turbo.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,14 @@
"dependsOn": ["^build", "^lint:fix"]
},
"test": {
"outputs": ["coverage/**"],
"dependsOn": ["^build", "^test"]
},
"test:dev": {
"dependsOn": ["^build", "^test:dev"]
},
"test:coverage": {
"outputs": ["coverage/**"],
"dependsOn": ["test"]
"dependsOn": ["^build", "^test:coverage"]
},
"typecheck": {
"dependsOn": ["^build"]
Expand Down

0 comments on commit 91a297e

Please sign in to comment.