@@ -10,75 +10,90 @@ jobs:
10
10
lint :
11
11
runs-on : ubuntu-latest
12
12
steps :
13
- - uses : actions/checkout@v3
14
- - uses : actions/setup-node@v3
15
- - name : Install Packages
16
- run : yarn install
17
- - name : Lint
18
- run : yarn lint
13
+ - uses : actions/checkout@v3
14
+ - uses : actions/setup-node@v3
15
+ - name : Install Packages
16
+ run : yarn install
17
+ - name : Lint
18
+ run : yarn lint
19
19
test :
20
20
runs-on : ubuntu-latest
21
21
strategy :
22
22
matrix :
23
23
node-version : [12.x, 14.x, 16.x, 17.x]
24
24
steps :
25
- - uses : actions/checkout@v3
26
- - name : Use Node.js ${{ matrix.node-version }}
27
- uses : actions/setup-node@v3
28
- with :
29
- node-version : ${{ matrix.node-version }}
30
- - name : Install Packages
31
- run : yarn install --ignore-engines
32
- - name : Test
33
- run : yarn test
25
+ - uses : actions/checkout@v3
26
+ - name : Use Node.js ${{ matrix.node-version }}
27
+ uses : actions/setup-node@v3
28
+ with :
29
+ node-version : ${{ matrix.node-version }}
30
+ - name : Install Packages
31
+ run : yarn install --ignore-engines
32
+ - name : Test
33
+ run : yarn test
34
34
test-for-ts-eslint-v4 :
35
35
runs-on : ubuntu-latest
36
36
strategy :
37
37
matrix :
38
38
node-version : [14.x]
39
39
steps :
40
- - uses : actions/checkout@v3
41
- - name : Use Node.js ${{ matrix.node-version }}
42
- uses : actions/setup-node@v3
43
- with :
44
- node-version : ${{ matrix.node-version }}
45
- - name : Install @typescript-eslint v4
46
- run : |+
47
- yarn add -D @typescript-eslint/parser@4 @typescript-eslint/eslint-plugin@4 eslint@7 --ignore-engines
48
- rm -rf node_modules
49
- - name : Install Packages
50
- run : yarn install --ignore-engines
51
- - name : Test
52
- run : yarn test
40
+ - uses : actions/checkout@v3
41
+ - name : Use Node.js ${{ matrix.node-version }}
42
+ uses : actions/setup-node@v3
43
+ with :
44
+ node-version : ${{ matrix.node-version }}
45
+ - name : Install @typescript-eslint v4
46
+ run : |+
47
+ yarn add -D @typescript-eslint/parser@4 @typescript-eslint/eslint-plugin@4 eslint@7 --ignore-engines
48
+ rm -rf node_modules
49
+ - name : Install Packages
50
+ run : yarn install --ignore-engines
51
+ - name : Test
52
+ run : yarn test
53
53
test-for-eslint-v7 :
54
54
runs-on : ubuntu-latest
55
55
strategy :
56
56
matrix :
57
57
node-version : [14.x]
58
58
steps :
59
- - uses : actions/checkout@v3
60
- - name : Use Node.js ${{ matrix.node-version }}
61
- uses : actions/setup-node@v3
62
- with :
63
- node-version : ${{ matrix.node-version }}
64
- - name : Install eslint v7
65
- run : |+
66
- yarn add -D eslint@7 --ignore-engines
67
- rm -rf node_modules
68
- - name : Install Packages
69
- run : yarn install --ignore-engines
70
- - name : Test
71
- run : yarn test
59
+ - uses : actions/checkout@v3
60
+ - name : Use Node.js ${{ matrix.node-version }}
61
+ uses : actions/setup-node@v3
62
+ with :
63
+ node-version : ${{ matrix.node-version }}
64
+ - name : Install eslint v7
65
+ run : |+
66
+ yarn add -D eslint@7 --ignore-engines
67
+ rm -rf node_modules
68
+ - name : Install Packages
69
+ run : yarn install --ignore-engines
70
+ - name : Test
71
+ run : yarn test
72
+ update-fixtures :
73
+ runs-on : ubuntu-latest
74
+ steps :
75
+ - uses : actions/checkout@v3
76
+ - uses : actions/setup-node@v3
77
+ with :
78
+ node-version : 18
79
+ - name : Install Packages
80
+ run : yarn install --ignore-engines
81
+ - name : Update fixtures
82
+ run : yarn update-fixtures
83
+ - name : Check changes
84
+ run : |
85
+ git add --all && \
86
+ git diff-index --cached HEAD --stat --exit-code
72
87
test-and-coverage :
73
88
runs-on : ubuntu-latest
74
89
steps :
75
- - uses : actions/checkout@v3
76
- - uses : actions/setup-node@v3
77
- - name : Install Packages
78
- run : yarn install --ignore-engines
79
- - name : Test
80
- run : yarn cover
81
- - name : Coveralls GitHub Action
82
- uses :
coverallsapp/[email protected]
83
- with :
84
- github-token : ${{ secrets.GITHUB_TOKEN }}
90
+ - uses : actions/checkout@v3
91
+ - uses : actions/setup-node@v3
92
+ - name : Install Packages
93
+ run : yarn install --ignore-engines
94
+ - name : Test
95
+ run : yarn cover
96
+ - name : Coveralls GitHub Action
97
+ uses :
coverallsapp/[email protected]
98
+ with :
99
+ github-token : ${{ secrets.GITHUB_TOKEN }}
0 commit comments