Skip to content

Commit

Permalink
feat: try ci coverage generation without dotenv
Browse files Browse the repository at this point in the history
seems to prevent datadog from piping coverage data
  • Loading branch information
karrui committed Oct 10, 2024
1 parent f9f331a commit 2e53576
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,10 @@ jobs:
languages: js
service: ${{ secrets.DD_SERVICE_NAME }}
api_key: ${{ secrets.DD_API_KEY }}
- name: Load .env file
uses: xom9ikk/dotenv@v2
with:
mode: test
- name: Test
run: npm run test-ci:coverage
env:
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"test:vitest": "dotenv -e .env.test vitest run",
"test-dev:vitest": "dotenv -e .env.test vitest",
"test:e2e": "dotenv -e .env.test playwright test",
"test-ci:coverage": "dotenv -e .env.test vitest run -- --coverage",
"test-ci:coverage": "vitest run --coverage",
"test-ci:e2e": "start-server-and-test start http://127.0.0.1:3000 test:e2e",
"test-dev:e2e": "start-server-and-test dev http://127.0.0.1:3000 test:e2e",
"load-test:build": "webpack --config tests/load/webpack.config.js",
Expand Down

0 comments on commit 2e53576

Please sign in to comment.