File tree Expand file tree Collapse file tree 3 files changed +41
-4
lines changed Expand file tree Collapse file tree 3 files changed +41
-4
lines changed Original file line number Diff line number Diff line change 3
3
name : Run linter
4
4
5
5
on :
6
- push :
7
- branches : [ master ]
8
6
pull_request :
9
7
branches : [ master ]
10
8
Original file line number Diff line number Diff line change 4
4
branches :
5
5
- master
6
6
jobs :
7
+ lint :
8
+ runs-on : ubuntu-latest
9
+
10
+ steps :
11
+ - uses : actions/checkout@v2
12
+
13
+ - name : Use Node.js 12
14
+ uses : actions/setup-node@v1
15
+ with :
16
+ node-version : ' 12'
17
+
18
+ - run : npm ci
19
+
20
+ - run : npm run lint
21
+
22
+ test :
23
+ runs-on : ubuntu-latest
24
+
25
+ strategy :
26
+ matrix :
27
+ node-version : [10.x, 12.x, 14.x]
28
+
29
+ steps :
30
+ - uses : actions/checkout@v2
31
+
32
+ - name : Use Node.js ${{ matrix.node-version }}
33
+ uses : actions/setup-node@v1
34
+ with :
35
+ node-version : ${{ matrix.node-version }}
36
+
37
+ - run : npm ci
38
+
39
+ - run : npm run test:coverage
40
+
41
+ - name : Coveralls GitHub Action
42
+ uses :
coverallsapp/[email protected]
43
+ with :
44
+ github-token : ${{ secrets.GITHUB_TOKEN }}
45
+ parallel : true
46
+ flag-name : ${{ matrix.node-version }}
47
+
7
48
release :
8
49
name : Release
9
50
runs-on : ubuntu-latest
Original file line number Diff line number Diff line change 3
3
name : Run tests
4
4
5
5
on :
6
- push :
7
- branches : [ master ]
8
6
pull_request :
9
7
branches : [ master ]
10
8
You can’t perform that action at this time.
0 commit comments