File tree Expand file tree Collapse file tree 1 file changed +32
-15
lines changed Expand file tree Collapse file tree 1 file changed +32
-15
lines changed Original file line number Diff line number Diff line change 1- # GitHub Nodejs CI
1+ # CI for command line NodeJS Applications
22name : nodejs
3+ on :
4+ push :
5+ paths :
6+ - " **/**"
7+ - " !**/*.md/**"
38
4- on : ['push']
9+ defaults :
10+ run :
11+ shell : bash
12+
13+ env :
14+ CI : true
15+ FORCE_COLOR : 2
516
617jobs :
7- build :
8- runs-on : ubuntu-latest
18+ pipeline :
19+ name : Node ${{ matrix.node }} on ${{ matrix.os }}
20+ runs-on : ${{ matrix.os }}
921
1022 strategy :
23+ fail-fast : false
1124 matrix :
12- node-version : ['14.x']
25+ node : ['14']
26+ os : ['ubuntu-latest']
1327
1428 steps :
15- - uses : actions/checkout@v2
16- - uses : codecov/codecov-action@v2
17- - name : Use Node.js ${{ matrix.node-version }}
18- uses : actions/setup-node@v2
29+ - name : Clone repository
30+ uses : actions/checkout@v2.3.4
31+
32+ - name : Set up Node.js
33+ uses : actions/setup-node@v2.1.5
1934 with :
20- node-version : ${{ matrix.node-version }}
21- - name : npm install, build, and test
35+ node-version : ${{ matrix.node }}
36+
37+ - name : Install npm dependencies
2238 run : |
23- npm install
24- npm test -- -u
25- bash scripts/run-coverage.sh
39+ npm install
40+ echo "::set-output name=install::nodejs"
41+ - name : Run Test
42+ run : npm test -- -u
2643 env :
27- CI : true
44+ CODECOV_TOKEN : 6ec88e00-584c-438e-b5a2-c220fc764ee4
You can’t perform that action at this time.
0 commit comments