File tree 1 file changed +42
-0
lines changed
1 file changed +42
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : CI
2
+ on :
3
+ push :
4
+ branches : [master]
5
+ pull_request :
6
+ branches : [master]
7
+
8
+ jobs :
9
+ lint :
10
+ name : Lint
11
+ runs-on : ubuntu-latest
12
+ steps :
13
+ - name : Checkout
14
+ uses : actions/checkout@v3
15
+ - name : Install Node.js
16
+ uses : actions/setup-node@v3
17
+ with :
18
+ node-version : 16
19
+ - name : Install Packages
20
+ run : npm install --legacy-peer-deps
21
+ - name : Lint
22
+ run : npm run lint
23
+
24
+ test :
25
+ name : Test
26
+ strategy :
27
+ matrix :
28
+ node : [16, 17]
29
+ os : [ubuntu-latest]
30
+
31
+ runs-on : ${{ matrix.os }}
32
+ steps :
33
+ - name : Checkout
34
+ uses : actions/checkout@v3
35
+ - name : Install Node.js v${{ matrix.node }}
36
+ uses : actions/setup-node@v3
37
+ with :
38
+ node-version : ${{ matrix.node }}
39
+ - name : Install Packages
40
+ run : npm install --legacy-peer-deps
41
+ - name : Test
42
+ run : npm test
You can’t perform that action at this time.
0 commit comments