@@ -10,75 +10,90 @@ jobs:
1010 lint :
1111 runs-on : ubuntu-latest
1212 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
1919 test :
2020 runs-on : ubuntu-latest
2121 strategy :
2222 matrix :
2323 node-version : [12.x, 14.x, 16.x, 17.x]
2424 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
3434 test-for-ts-eslint-v4 :
3535 runs-on : ubuntu-latest
3636 strategy :
3737 matrix :
3838 node-version : [14.x]
3939 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
5353 test-for-eslint-v7 :
5454 runs-on : ubuntu-latest
5555 strategy :
5656 matrix :
5757 node-version : [14.x]
5858 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
7287 test-and-coverage :
7388 runs-on : ubuntu-latest
7489 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/github-action@1.1.3
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/github-action@1.1.3
98+ with :
99+ github-token : ${{ secrets.GITHUB_TOKEN }}
0 commit comments