Skip to content

Commit 516c0fc

Browse files
committed
chore: code coverage job
1 parent 4194741 commit 516c0fc

File tree

1 file changed

+19
-19
lines changed

1 file changed

+19
-19
lines changed

.github/workflows/coverage.yaml

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
1-
name: Code Coverage
2-
1+
name: 'coverage'
32
on:
4-
pull_request:
5-
branches:
6-
- master
7-
- main
8-
3+
pull_request:
4+
branches:
5+
- master
6+
- main
97
jobs:
10-
coverage:
11-
runs-on: ubuntu-latest
12-
env:
13-
CI_JOB_NUMBER: 1
14-
steps:
15-
- uses: actions/checkout@v2
16-
- run: npm install
17-
- run: npm run install:plugins
18-
- uses: artiomtr/[email protected]
19-
with:
20-
github_token: ${{ secrets.GITHUB_TOKEN }}
21-
test_script: npm run test:jest
8+
coverage:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v3
12+
- run: npm install
13+
- run: npm run install:plugins
14+
- uses: ArtiomTr/jest-coverage-report-action@v2
15+
id: coverage
16+
with:
17+
output: report-markdown
18+
test-script: npm run test:jest
19+
- uses: marocchino/sticky-pull-request-comment@v2
20+
with:
21+
message: ${{ steps.coverage.outputs.report }}

0 commit comments

Comments
 (0)