File tree Expand file tree Collapse file tree 1 file changed +38
-0
lines changed Expand file tree Collapse file tree 1 file changed +38
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Test
2+
3+ on :
4+ push :
5+ branches : [ "main" ]
6+ pull_request :
7+ branches : [ "main" ]
8+
9+ jobs :
10+ build :
11+ runs-on : ubuntu-latest
12+
13+ strategy :
14+ matrix :
15+ # See supported Node.js release schedule at https://nodejs.org/en/about/releases/
16+ node-version : [18.x, 20.x]
17+
18+ steps :
19+ - uses : actions/checkout@v3
20+ - name : Use Node ${{ matrix.node-version }}
21+ uses : actions/setup-node@v3
22+ with :
23+ node-version : ${{ matrix.node-version }}
24+ cache : ' npm'
25+ - run : npm ci
26+ - run : npm test
27+
28+ lint :
29+ runs-on : ubuntu-latest
30+ steps :
31+ - uses : actions/checkout@v3
32+ - name : Use Node 18
33+ uses : actions/setup-node@v3
34+ with :
35+ node-version : 18.x
36+ cache : ' npm'
37+ - run : npm ci
38+ - run : npm run lint
You can’t perform that action at this time.
0 commit comments