@@ -14,15 +14,27 @@ permissions:
14
14
contents : read
15
15
16
16
jobs :
17
- main :
17
+ test :
18
+ name : Test on ${{ matrix.os }} with Node.js ${{ matrix.node-version }}
19
+
18
20
runs-on : ${{ matrix.os }}
19
21
20
22
strategy :
21
23
matrix :
22
- os : [ubuntu-latest, windows-latest, macOS-latest]
23
- node-version : [16, 18, 20, 22]
24
+ os :
25
+ - macOS-latest
26
+ - ubuntu-latest
27
+ - windows-latest
28
+ node-version :
29
+ - 16
30
+ - 18
31
+ - 20
32
+ - 22
24
33
fail-fast : false
25
34
35
+ env :
36
+ YARN_IGNORE_NODE : 1
37
+
26
38
steps :
27
39
- uses : actions/checkout@v4
28
40
with :
@@ -31,33 +43,33 @@ jobs:
31
43
- uses : actions/setup-node@v4
32
44
with :
33
45
node-version : ${{ matrix.node-version }}
34
- cache : npm
46
+ cache : yarn
35
47
36
- - name : npm ci
37
- run : npm ci --no-audit
48
+ - name : Install Dependencies
49
+ run : yarn --immutable
38
50
39
51
- name : Jest - flat
40
- run : npx jest
52
+ run : yarn test: jest
41
53
env :
42
54
ESLINT_CONFIG_PRETTIER_NO_DEPRECATED : " true"
43
55
44
56
- name : Jest - eslintrc
45
- run : npx jest
57
+ run : yarn test: jest
46
58
env :
47
59
ESLINT_USE_FLAT_CONFIG : " false"
48
60
49
61
- name : CLI sanity - flat
50
- run : npm run test:cli-sanity
62
+ run : yarn test:cli-sanity
51
63
52
64
- name : CLI sanity - eslintrc
53
- run : npm run test:cli-sanity
65
+ run : yarn test:cli-sanity
54
66
env :
55
67
ESLINT_USE_FLAT_CONFIG : " false"
56
68
57
69
- name : CLI sanity warning - flat
58
- run : npm run test:cli-sanity-warning
70
+ run : yarn test:cli-sanity-warning
59
71
60
72
- name : CLI sanity warning - eslintrc
61
- run : npm run test:cli-sanity-warning
73
+ run : yarn test:cli-sanity-warning
62
74
env :
63
75
ESLINT_USE_FLAT_CONFIG : " false"
0 commit comments