1
1
name : CI
2
2
on :
3
3
push :
4
- branches : [master , gha]
4
+ branches : [main , gha]
5
5
pull_request :
6
- branches : [master ]
6
+ branches : [main ]
7
7
schedule :
8
- - cron : 0 0 * * 0
8
+ - cron : 0 0 * * 0
9
9
10
10
jobs :
11
11
lint :
12
12
name : Lint
13
13
runs-on : ubuntu-latest
14
14
steps :
15
- - name : Checkout
16
- uses : actions/checkout@v2
17
- - name : Install Node.js
18
- uses : actions/setup-node@v1
19
- with : { node-version: 14.x }
20
- - name : Install Packages
21
- run : npm install
22
- - name : Lint
23
- run : npm run -s lint
15
+ - name : Checkout
16
+ uses : actions/checkout@v2
17
+ - name : Install Node.js
18
+ uses : actions/setup-node@v1
19
+ with : { node-version: 14.x }
20
+ - name : Install Packages
21
+ run : npm install
22
+ - name : Lint
23
+ run : npm run -s lint
24
24
25
25
test :
26
26
name : Test
@@ -30,48 +30,48 @@ jobs:
30
30
node : [14.x]
31
31
os : [ubuntu-latest]
32
32
include :
33
- # On other platforms
34
- - eslint : 7.x
35
- node : 14.x
36
- os : windows-latest
37
- - eslint : 7.x
38
- node : 14.x
39
- os : macos-latest
40
- # On old Node.js versions
41
- - eslint : 7.x
42
- node : 12.x
43
- os : ubuntu-latest
44
- - eslint : 7.x
45
- node : 10.x
46
- os : ubuntu-latest
47
- - eslint : 6.x
48
- node : 8.x
49
- os : ubuntu-latest
50
- - eslint : 5.x
51
- node : 6.x
52
- os : ubuntu-latest
53
- # On the minimum supported ESLint/Node.js version
54
- - eslint : " 4.19.1"
55
- node : " 6.5.0"
56
- os : ubuntu-latest
33
+ # On other platforms
34
+ - eslint : 7.x
35
+ node : 14.x
36
+ os : windows-latest
37
+ - eslint : 7.x
38
+ node : 14.x
39
+ os : macos-latest
40
+ # On old Node.js versions
41
+ - eslint : 7.x
42
+ node : 12.x
43
+ os : ubuntu-latest
44
+ - eslint : 7.x
45
+ node : 10.x
46
+ os : ubuntu-latest
47
+ - eslint : 6.x
48
+ node : 8.x
49
+ os : ubuntu-latest
50
+ - eslint : 5.x
51
+ node : 6.x
52
+ os : ubuntu-latest
53
+ # On the minimum supported ESLint/Node.js version
54
+ - eslint : " 4.19.1"
55
+ node : " 6.5.0"
56
+ os : ubuntu-latest
57
57
58
58
runs-on : ${{ matrix.os }}
59
59
steps :
60
- - name : Checkout
61
- uses : actions/checkout@v2
62
- - name : Install Node.js ${{ matrix.node }}
63
- uses : actions/setup-node@v1
64
- with : { node-version: "${{ matrix.node }}" }
65
- - name : Install npm 6.x
66
- run :
npm install --global [email protected]
67
- if : ${{ matrix.node == '6.x' || matrix.node == '6.5.0' }}
68
- - name : Install Packages
69
- run : npm install
70
- - name : Install ESLint ${{ matrix.eslint }}
71
- run : npm install --no-save eslint@${{ matrix.eslint }}
72
- - name : Test
73
- run : npm run -s test:ci
74
- - name : Send Coverage
75
- run : npm run -s codecov
76
- env :
77
- CODECOV_TOKEN : ${{ secrets.CODECOV_TOKEN }}
60
+ - name : Checkout
61
+ uses : actions/checkout@v2
62
+ - name : Install Node.js ${{ matrix.node }}
63
+ uses : actions/setup-node@v1
64
+ with : { node-version: "${{ matrix.node }}" }
65
+ - name : Install npm 6.x
66
+ run :
npm install --global [email protected]
67
+ if : ${{ matrix.node == '6.x' || matrix.node == '6.5.0' }}
68
+ - name : Install Packages
69
+ run : npm install
70
+ - name : Install ESLint ${{ matrix.eslint }}
71
+ run : npm install --no-save eslint@${{ matrix.eslint }}
72
+ - name : Test
73
+ run : npm run -s test:ci
74
+ - name : Send Coverage
75
+ run : npm run -s codecov
76
+ env :
77
+ CODECOV_TOKEN : ${{ secrets.CODECOV_TOKEN }}
0 commit comments