Skip to content

Commit f21ac37

Browse files
committed
Added a coverage GHA
1 parent 15e056f commit f21ac37

File tree

3 files changed

+15
-1
lines changed

3 files changed

+15
-1
lines changed

.github/workflows/coverage.yml

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
---
2+
name: "coverage"
3+
on:
4+
pull_request:
5+
jobs:
6+
coverage:
7+
permissions:
8+
checks: write
9+
pull-requests: write
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v2
13+
- uses: ArtiomTr/jest-coverage-report-action@v2

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@ node_modules
33
public/bundle.*
44
index.js
55
index.mjs
6+
coverage

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
"dev": "run-p start:dev autobuild",
4141
"start": "sirv public --single",
4242
"start:dev": "sirv public --single --dev",
43-
"test": "jest",
43+
"test": "jest --coverage",
4444
"prettier": "prettier --write public src",
4545
"prepare": "npm run build"
4646
},

0 commit comments

Comments
 (0)