File tree Expand file tree Collapse file tree 1 file changed +45
-0
lines changed
Expand file tree Collapse file tree 1 file changed +45
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Project CICD
2+
3+ on :
4+ push :
5+ branches : [ "main" ]
6+ pull_request :
7+ branches : [ "main" ]
8+
9+ jobs :
10+ test :
11+ runs-on : ubuntu-latest
12+
13+ steps :
14+ - uses : actions/checkout@v4
15+ - name : Use Node.js 18
16+ uses : actions/setup-node@v4
17+ with :
18+ node-version : ' 18'
19+ cache : ' npm'
20+
21+ - name : Install Dependencies
22+ run : npm ci
23+
24+ - name : Run lint
25+ run : npm run lint
26+
27+ - name : Run test with coverage
28+ run : npm run test:cov
29+
30+ build :
31+ runs-on : ubuntu-latest
32+
33+ steps :
34+ - uses : actions/checkout@v4
35+ - name : Use Node.js ${{ matrix.node-version }}
36+ uses : actions/setup-node@v4
37+ with :
38+ node-version : ' 18'
39+ cache : ' npm'
40+
41+ - name : Install Dependencies
42+ run : npm ci
43+
44+ - name : Run Build
45+ run : npm run build
You can’t perform that action at this time.
0 commit comments