File tree Expand file tree Collapse file tree 1 file changed +11
-4
lines changed Expand file tree Collapse file tree 1 file changed +11
-4
lines changed Original file line number Diff line number Diff line change 1
- name : Test and Build
1
+ name : Test Suite
2
2
3
3
on :
4
- workflow_dispatch :
4
+ push :
5
+ branches : [main]
6
+ pull_request :
7
+ # The branches below must be a subset of the branches above
8
+ branches : [main]
5
9
6
10
jobs :
7
11
test-and-build :
8
12
runs-on : ubuntu-latest
9
13
strategy :
10
14
matrix :
11
- node-version : [16.x, 14.x ]
15
+ node-version : [16.x]
12
16
steps :
13
17
- name : Checkout code
14
18
uses : actions/checkout@v2
15
19
with :
16
- ref : ${{ github.event.pull_request.head.sha }}
20
+ ref : ${{ if github.event_name == 'pull_request' }}${{ github. event.pull_request.head.sha }}${{ else }}${{ github.ref }}${{ endif }}
17
21
fetch-depth : 0
18
22
19
23
- name : Use Node.js ${{ matrix.node-version }}
20
24
uses : actions/setup-node@v2
21
25
with :
22
26
node-version : ${{ matrix.node-version }}
23
27
28
+ - name : Linting
29
+ run : npm run eslint
30
+
24
31
- name : Install dependencies
25
32
run : npm install
26
33
You can’t perform that action at this time.
0 commit comments