File tree Expand file tree Collapse file tree 4 files changed +30
-5
lines changed Expand file tree Collapse file tree 4 files changed +30
-5
lines changed Original file line number Diff line number Diff line change
1
+ coverage :
2
+ status :
3
+ patch :
4
+ default :
5
+ target : 90%
6
+ project :
7
+ default :
8
+ target : auto
9
+ threshold : 2%
10
+ comment :
11
+ layout : ' diff, flags, files'
12
+ behavior : new
13
+ require_changes : false
Original file line number Diff line number Diff line change 1
1
name : CI
2
- on : [push, pull_request ]
2
+ on : [push]
3
3
jobs :
4
4
build :
5
- name : Test
5
+ name : CI
6
6
runs-on : ubuntu-latest
7
7
steps :
8
8
- uses : actions/checkout@v2
9
- - uses : borales/actions-yarn@v2.3.0
9
+ - name : set node.js 16.x
10
+ uses : actions/setup-node@v3
11
+ with :
12
+ node-version : 16.x
13
+ - uses : borales/actions-yarn@v4
10
14
with :
11
15
cmd : install
12
- - uses : borales/actions-yarn@v2.3.0
16
+ - uses : borales/actions-yarn@v4
13
17
with :
14
18
cmd : check:all
19
+ - name : Code coverage report
20
+ uses : codecov/codecov-action@v2
21
+ with :
22
+ yml : ./codecov.yml
23
+ token : ${{ secrets.CODECOV_TOKEN }}
24
+ flags : unittest
25
+ name : codecov
Original file line number Diff line number Diff line change 1
1
![ action status] ( https://github.com/yeonjuan/parse-git-diff/actions/workflows/main.yml/badge.svg?branch=main )
2
2
[ ![ npm version] ( https://badge.fury.io/js/parse-git-diff.svg )] ( https://www.npmjs.com/package/parse-git-diff )
3
3
[ ![ license] ( https://img.shields.io/badge/License-MIT-yellow.svg )] ( ./LICENSE )
4
+ [ ![ codecov] ( https://codecov.io/gh/yeonjuan/parse-git-diff/branch/main/graph/badge.svg?token=J1FUY9P07I )] ( https://codecov.io/gh/yeonjuan/parse-git-diff )
4
5
5
6
# parse-git-diff
6
7
Original file line number Diff line number Diff line change 9
9
"prepublish" : " yarn build" ,
10
10
"build" : " rimraf build && rollup -c rollup.config.js && tsc --declaration" ,
11
11
"format" : " prettier . --write" ,
12
- "test" : " jest" ,
12
+ "test" : " jest --coverage " ,
13
13
"prebuild" : " yarn check:all" ,
14
14
"publish:demo" : " gh-pages -d demo" ,
15
15
"check:all" : " prettier --check . && tsc --noEmit && yarn test" ,
You can’t perform that action at this time.
0 commit comments