Skip to content

Commit

Permalink
feat: add coverage generation in test CI (for dd)
Browse files Browse the repository at this point in the history
  • Loading branch information
karrui committed Oct 11, 2024
1 parent 7ea5d02 commit 1d5b618
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,10 @@ jobs:
languages: js
service-name: ${{ secrets.DD_SERVICE_NAME }}
api-key: ${{ secrets.DD_API_KEY }}
- run: npm test
- run: npm test:coverage
env:
# Required to allow Datadog to trace Vitest tests
NODE_OPTIONS: -r ${{ env.DD_TRACE_PACKAGE }} --import ${{ env.DD_TRACE_ESM_IMPORT }}
NODE_OPTIONS: -r ${{ env.DD_TRACE_PACKAGE }}
gatekeep:
name: Determine if Build & Deploy is needed
outputs:
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"lint": "eslint .",
"lint-fix": "eslint --fix ./src",
"test": "jest",
"test:coverage": "jest --coverage",
"build": "tsc && webpack --mode production",
"dev": "concurrently \"npm run dev-server\" \"npm run dev-client\"",
"dev-server": "ts-node-dev --respawn --transpile-only --inspect -- src/server/index.ts",
Expand Down

0 comments on commit 1d5b618

Please sign in to comment.