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 : Testing and validation
2+
3+ on : [push, pull_request]
4+
5+ jobs :
6+
7+ linting :
8+ name : Linting
9+ runs-on : ubuntu-latest
10+ strategy :
11+ matrix :
12+ node : [ 16.x ]
13+
14+ steps :
15+ - name : Check-out
16+ uses : actions/checkout@v2
17+ - name : Set up Node.js ${{ matrix.node }}
18+ uses : actions/setup-node@v2
19+ with :
20+ node-version : ${{ matrix.node }}
21+ cache : ' npm'
22+ - name : Install dependencies
23+ run : npm ci
24+ - name : Install Angular CLI
25+ run : npm install -g @angular/cli
26+ - name : Run linter
27+ run : npm run lint
28+
29+ test :
30+ name : Tests
31+ needs : linting
32+ runs-on : ubuntu-latest
33+ strategy :
34+ matrix :
35+ node : [ 16.x ]
36+
37+ steps :
38+ - name : Check-out
39+ uses : actions/checkout@v2
40+ - name : Set up Node.js ${{ matrix.node }}
41+ uses : actions/setup-node@v2
42+ with :
43+ node-version : ${{ matrix.node }}
44+ cache : ' npm'
45+ - name : Install dependencies
46+ run : npm ci
47+ - name : Install Angular CLI
48+ run : npm install -g @angular/cli
49+ - name : Run tests
50+ run : npm test -- --configuration=ci
51+
52+ test_build :
53+ name : Test build
54+ needs : test
55+ runs-on : ubuntu-latest
56+ strategy :
57+ matrix :
58+ node : [ 16.x ]
59+
60+ steps :
61+ - name : Check-out
62+ uses : actions/checkout@v2
63+ - name : Set up Node.js ${{ matrix.node }}
64+ uses : actions/setup-node@v2
65+ with :
66+ node-version : ${{ matrix.node }}
67+ cache : ' npm'
68+ - name : Install dependencies
69+ run : npm ci
70+ - name : Install Angular CLI
71+ run : npm install -g @angular/cli
72+ - name : Build
73+ run : npm run build
You can’t perform that action at this time.
0 commit comments