File tree Expand file tree Collapse file tree 2 files changed +48
-26
lines changed Expand file tree Collapse file tree 2 files changed +48
-26
lines changed Original file line number Diff line number Diff line change 1+ name : CI Testing
2+
3+ on :
4+ pull_request :
5+ branches :
6+ - master
7+
8+ push :
9+ branches :
10+ - master
11+
12+ jobs :
13+ test :
14+ name : Test on Node ${{ matrix.node-version }}
15+ runs-on : ubuntu-latest
16+
17+ strategy :
18+ matrix :
19+ node-version : [12.x]
20+
21+ steps :
22+ - uses : actions/checkout@v2
23+ - name : Use Node.js ${{ matrix.node-version }}
24+ uses : actions/setup-node@v1
25+ with :
26+ node-version : ${{ matrix.node-version }}
27+ - name : Cache Node.js modules
28+ uses : actions/cache@v2
29+ with :
30+ path : ~/.npm
31+ key : ${{ runner.OS }}-node-${{ matrix.node-version }}-${{ hashFiles('**/package-lock.json') }}
32+ restore-keys : |
33+ ${{ runner.OS }}-node-${{ matrix.node-version }}-
34+ ${{ runner.OS }}-node-
35+ ${{ runner.OS }}-
36+
37+ - name : Install deps
38+ run : npm install
39+ - name : Linting
40+ run : npx ng lint
41+ - name : Build lib
42+ run : npx ng build ngx-ui-loader --prod
43+ - name : Testing
44+ run : npm test
45+ - name : Upload codecov report
46+ uses : codecov/codecov-action@v1
47+ - name : Production build
48+ run : npx ng build --prod
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments