Skip to content

Commit

Permalink
⚙️ Change coverage action
Browse files Browse the repository at this point in the history
  • Loading branch information
radek2s committed Feb 1, 2024
1 parent 6ee32d8 commit b53a937
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,11 @@ jobs:
- name: Setup node
uses: actions/setup-node@v4
with:
node-version: 18.13
cache: 'npm'
node-version: 18.13
cache: 'npm'
- run: npm ci
- name: Test Report
uses: ArtiomTr/jest-coverage-report-action@v2.2.6
uses: ArtiomTr/jest-coverage-report-action@v2
with:
name: Jest Tests
test-script: npm run test:coverage
coverage-file: coverage.json
test-script: npm run test:ci:coverage
coverage-file: report.json
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

# testing
/coverage
coverage.json
report.json

# production
/build
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
"test": "vitest",
"test:ci": "vitest run",
"test:coverage": "vitest run --coverage",
"test:ci:coverage": "vitest run --coverage --reporter=json --outputFile=coverage.json",
"test:ci:coverage": "vitest run --coverage --reporter=json --outputFile=report.json",
"build": "CI=false && tsc && vite build",
"preview": "vite preview",
"format": "npx prettier --write .",
Expand Down

0 comments on commit b53a937

Please sign in to comment.