File tree 4 files changed +35
-10
lines changed 4 files changed +35
-10
lines changed Original file line number Diff line number Diff line change
1
+ name : CI
2
+ on :
3
+ push :
4
+ branches : [master]
5
+ pull_request :
6
+ branches : [master]
7
+ schedule :
8
+ - cron : 0 0 * * 0
9
+
10
+ jobs :
11
+ test :
12
+ name : Test
13
+ runs-on : ubuntu-latest
14
+ strategy :
15
+ matrix :
16
+ node : [12.x, 10.x, 8.x]
17
+ steps :
18
+ - name : Checkout
19
+ uses : actions/checkout@v1
20
+ with :
21
+ fetch-depth : 1
22
+ - name : Install Node.js ${{ matrix.node }}
23
+ uses : actions/setup-node@v1
24
+ with :
25
+ node-version : ${{ matrix.node }}
26
+ - name : Install Packages
27
+ run : npm install
28
+ - name : Test
29
+ run : npm test
30
+ - name : Send Coverage
31
+ run : npm run -s codecov
32
+ env :
33
+ CODECOV_TOKEN : ${{ secrets.CODECOV_TOKEN }}
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 2
2
3
3
[ ![ npm version] ( https://img.shields.io/npm/v/@mysticatea/eslint-plugin.svg )] ( https://www.npmjs.com/package/@mysticatea/eslint-plugin )
4
4
[ ![ Downloads/month] ( https://img.shields.io/npm/dm/@mysticatea/eslint-plugin.svg )] ( http://www.npmtrends.com/@mysticatea/eslint-plugin )
5
- [ ![ Build Status] ( https://travis-ci.org /mysticatea/eslint-plugin.svg?branch=master )] ( https://travis-ci.org /mysticatea/eslint-plugin )
5
+ [ ![ Build Status] ( https://github.com /mysticatea/eslint-plugin/workflows/CI/badge .svg )] ( https://github.com /mysticatea/eslint-plugin/actions )
6
6
[ ![ codecov] ( https://codecov.io/gh/mysticatea/eslint-plugin/branch/master/graph/badge.svg )] ( https://codecov.io/gh/mysticatea/eslint-plugin )
7
7
[ ![ Dependency Status] ( https://david-dm.org/mysticatea/eslint-plugin.svg )] ( https://david-dm.org/mysticatea/eslint-plugin )
8
8
Original file line number Diff line number Diff line change 39
39
"scripts" : {
40
40
"clean" : " rimraf .nyc_output coverage" ,
41
41
"coverage" : " nyc report --reporter lcov && opener coverage/lcov-report/index.html" ,
42
- "codecov" : " nyc report --reporter lcov && codecov" ,
42
+ "codecov" : " nyc report --reporter text- lcov | codecov --pipe --disable=gcov -t $CODECOV_TOKEN " ,
43
43
"lint" : " eslint lib scripts tests" ,
44
44
"test" : " npm run -s lint && nyc mocha \" tests/lib/**/*.js\" --reporter dot" ,
45
45
"update" : " node scripts/generate-browser-globals && node scripts/generate-configs && node scripts/generate-rules" ,
You can’t perform that action at this time.
0 commit comments