File tree Expand file tree Collapse file tree 3 files changed +32
-9
lines changed Expand file tree Collapse file tree 3 files changed +32
-9
lines changed Original file line number Diff line number Diff line change 1
1
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
2
2
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
3
3
4
- name : Node.js CI
4
+ name : Linting
5
5
6
6
on :
7
7
push :
10
10
branches : [ main ]
11
11
12
12
jobs :
13
- build :
13
+ lint :
14
14
15
15
runs-on : ubuntu-latest
16
16
Original file line number Diff line number Diff line change
1
+ name : Testing
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
+ strategy :
13
+ matrix :
14
+ node-version : [10.x, 12.x]
15
+
16
+
17
+ steps :
18
+ - uses : actions/checkout@v1
19
+ - name : Use Node.js ${{ matrix.node-version }}
20
+ uses : actions/setup-node@v1
21
+ with :
22
+ node-version : ${{ matrix.node-version }}
23
+ - name : Get node modules
24
+ run : npm ci
25
+ env :
26
+ CI : true
27
+ - name : Build
28
+ run : npm run build
29
+ env :
30
+ CI : true
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments