File tree Expand file tree Collapse file tree 3 files changed +52
-12
lines changed Expand file tree Collapse file tree 3 files changed +52
-12
lines changed Original file line number Diff line number Diff line change
1
+ name : Node.js CI
2
+
3
+ on :
4
+ pull_request :
5
+ push :
6
+ branches :
7
+ - master
8
+ schedule :
9
+ - cron : ' 0 0 * * 0' # weekly
10
+
11
+ jobs :
12
+ test :
13
+ runs-on : ubuntu-latest
14
+ name : Node.js
15
+ strategy :
16
+ matrix :
17
+ node-version : [12.x, 14.x, 16.x]
18
+
19
+ steps :
20
+ - uses : actions/checkout@v2
21
+ - name : Set up Node.js ${{ matrix.node-version }}
22
+ uses : actions/setup-node@v1
23
+ with :
24
+ node-version : ${{ matrix.node-version }}
25
+ - name : Cache Node.js modules
26
+ uses : actions/cache@v2
27
+ with :
28
+ # npm cache files are stored in `~/.npm` on Linux/macOS
29
+ path : ~/.npm
30
+ key : ${{ runner.OS }}-node-${{ hashFiles('**/package-lock.json') }}
31
+ restore-keys : |
32
+ ${{ runner.OS }}-node-
33
+ ${{ runner.OS }}-
34
+ - run : npm ci
35
+ - run : npm test
36
+ - name : Coveralls Parallel
37
+ uses : coverallsapp/github-action@master
38
+ with :
39
+ github-token : ${{ secrets.github_token }}
40
+ flag-name : run-${{ matrix.test_number }}
41
+ parallel : true
42
+
43
+ finish :
44
+ needs : test
45
+ runs-on : ubuntu-latest
46
+ steps :
47
+ - name : Coveralls Finished
48
+ uses : coverallsapp/github-action@master
49
+ with :
50
+ github-token : ${{ secrets.github_token }}
51
+ parallel-finished : true
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 4
4
"description" : " Validate GraphQL fields" ,
5
5
"main" : " index.js" ,
6
6
"scripts" : {
7
- "test" : " standard && nyc --reporter=html --reporter=text mocha test/**/*.test.js" ,
8
- "coverage" : " nyc report --reporter=text-lcov | coveralls"
7
+ "test" : " standard && nyc --reporter=html --reporter=text --reporter=lcov mocha test/**/*.test.js"
9
8
},
10
9
"author" :
" James Mortemore ([email protected] )" ,
11
10
"license" : " ISC" ,
You can’t perform that action at this time.
0 commit comments