File tree Expand file tree Collapse file tree 1 file changed +3
-43
lines changed
Expand file tree Collapse file tree 1 file changed +3
-43
lines changed Original file line number Diff line number Diff line change 11name : CI
22
3- on :
4- push :
5- branches : [main]
6- pull_request :
7- branches : [main]
3+ on : [push, pull_request]
84
95jobs :
10- build :
11- runs-on : ubuntu-latest
12-
13- strategy :
14- matrix :
15- node-version : [20.x, 22.x]
16-
17- steps :
18- - uses : actions/checkout@v4
19-
20- - name : Use Node.js ${{ matrix.node-version }}
21- uses : actions/setup-node@v4
22- with :
23- node-version : ${{ matrix.node-version }}
24- cache : ' npm'
25-
26- - name : Install dependencies
27- run : npm ci
28-
29- - name : Build
30- run : npm run build
31-
32- - name : Lint
33- run : npm run lint
34-
35- - name : Test
36- run : npm test
37-
38- - name : Test with coverage
39- if : matrix.node-version == '22.x'
40- run : npm run test:coverage
41-
42- - name : Upload coverage
43- if : matrix.node-version == '22.x'
44- uses : codecov/codecov-action@v4
45- with :
46- file : ./coverage/lcov.info
47- fail_ci_if_error : false
6+ ci :
7+ uses : 1mb-dev/.github/.github/workflows/ci-node.yml@main
You can’t perform that action at this time.
0 commit comments