File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : CI
2+
3+ on :
4+ pull_request :
5+ branches :
6+ - master
7+
8+ jobs :
9+ build :
10+ runs-on : ubuntu-latest
11+
12+ strategy :
13+ matrix :
14+ node-version : [10.x, 12.x, 14.x]
15+
16+ steps :
17+ - uses : actions/checkout@v2
18+ - name : Use Node.js ${{ matrix.node-version }}
19+ uses : actions/setup-node@v1
20+ with :
21+ node-version : ${{ matrix.node-version }}
22+ - run : npm install
23+ - run : npm run build --if-present
24+ - run : npm test
25+ env :
26+ CI : true
27+
28+ coverage :
29+ needs : [build]
30+ name : Run Test and Publish Code Coverage
31+ runs-on : ubuntu-latest
32+ steps :
33+ - uses : actions/checkout@master
34+ - uses : actions/setup-node@master
35+ with :
36+ node-version : ' 12'
37+ - run : npm install
38+ - run : npm run build --if-present
39+ - uses : paambaati/codeclimate-action@v2.5.4
40+ env :
41+ CC_TEST_REPORTER_ID : ${{ secrets.CC_TEST_REPORTER_ID }}
42+ with :
43+ coverageCommand : npm run coverage
44+ debug : true
You can’t perform that action at this time.
0 commit comments