Skip to content

Commit

Permalink
Modify relative path for code coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
ducquando committed Apr 19, 2024
1 parent 3382f83 commit 6c83ec5
Show file tree
Hide file tree
Showing 3 changed files with 56 additions and 4 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,14 @@ jobs:
- name: Run Tests
run: npm run test:ci

- name: Run Tests Again
run: npm run test:ci
- name: Fix coverage paths
run: npm run fix-coverage-paths

- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v4.1.1
uses: codecov/codecov-action@v4.0.1
with:
token: ${{ secrets.CODECOV_TOKEN }}
slug: code-slide/ui

- name: Run Build
run: npm run build
49 changes: 49 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@
"test:cv": "vitest --coverage",
"test:ci": "vitest run --coverage --browser.name=chromium --browser.provider=playwright --browser.headless",
"storybook": "storybook dev -p 6006",
"chromatic": "npx chromatic --project-token=chpt_fb075605340d316"
"chromatic": "npx chromatic --project-token=chpt_fb075605340d316",
"fix-coverage-paths": "replace-in-file '/home/runner/work/ui/ui/' './' coverage/coverage-final.json coverage/clover.xml"
},
"devDependencies": {
"@codecov/vite-plugin": "^0.0.1-beta.6",
Expand Down Expand Up @@ -92,6 +93,7 @@
"eslint-plugin-sort-keys-fix": "^1.1.2",
"eslint-plugin-storybook": "^0.6.15",
"jsdom": "^24.0.0",
"replace-in-file": "^7.1.0",
"sass": "^1.72.0",
"storybook": "^7.5.1",
"typescript": "^5.2.2",
Expand Down

0 comments on commit 6c83ec5

Please sign in to comment.