@@ -25,10 +25,10 @@ jobs:
25
25
uses : actions/cache@v3
26
26
with :
27
27
path : ' **/node_modules'
28
- key : ${{runner.os}}-16-8- 16-node-modules-${{hashFiles('yarn.lock')}}
28
+ key : ${{runner.os}}-16-16-node-modules-${{hashFiles('yarn.lock')}}
29
29
restore-keys : |
30
- ${{runner.os}}-16-8- 16-node-modules-${{hashFiles('yarn.lock')}}
31
- ${{runner.os}}-16-8- 16-node-modules-
30
+ ${{runner.os}}-16-16-node-modules-${{hashFiles('yarn.lock')}}
31
+ ${{runner.os}}-16-16-node-modules-
32
32
33
33
- name : Install Dependencies
34
34
run : yarn
@@ -58,10 +58,10 @@ jobs:
58
58
uses : actions/cache@v3
59
59
with :
60
60
path : ' **/node_modules'
61
- key : ${{runner.os}}-16-8- ${{matrix.graphql_version}}-node-modules-${{hashFiles('yarn.lock')}}
61
+ key : ${{runner.os}}-16-${{matrix.graphql_version}}-node-modules-${{hashFiles('yarn.lock')}}
62
62
restore-keys : |
63
- ${{runner.os}}-16-8- ${{matrix.graphql_version}}-node-modules-${{hashFiles('yarn.lock')}}
64
- ${{runner.os}}-16-8- ${{matrix.graphql_version}}-node-modules-
63
+ ${{runner.os}}-16-${{matrix.graphql_version}}-node-modules-${{hashFiles('yarn.lock')}}
64
+ ${{runner.os}}-16-${{matrix.graphql_version}}-node-modules-
65
65
66
66
- name : Use GraphQL v${{matrix.graphql_version}}
67
67
run : node ./scripts/match-graphql.mjs ${{matrix.graphql_version}}
@@ -79,14 +79,13 @@ jobs:
79
79
path : packages/plugin/dist
80
80
81
81
test :
82
- name : Testing on Node ${{matrix.node_version}} with ESLint v${{matrix.eslint_version }} and GraphQL v${{matrix.graphql_version}}
82
+ name : Testing on Node ${{matrix.node_version}} with GraphQL v${{matrix.graphql_version }} and ESLint v8
83
83
timeout-minutes : 60
84
84
runs-on : ubuntu-latest
85
85
needs : [typecheck]
86
86
strategy :
87
87
matrix :
88
88
node_version : [12, 16]
89
- eslint_version : [7.32.0, 8]
90
89
graphql_version : [15, 16]
91
90
92
91
steps :
@@ -104,28 +103,25 @@ jobs:
104
103
uses : actions/cache@v3
105
104
with :
106
105
path : ' **/node_modules'
107
- key : ${{runner.os}}-${{matrix.node_version}}-${{matrix.eslint_version}}-${{matrix. graphql_version}}-node-modules-${{hashFiles('yarn.lock')}}
106
+ key : ${{runner.os}}-${{matrix.node_version}}-${{matrix.graphql_version}}-node-modules-${{hashFiles('yarn.lock')}}
108
107
restore-keys : |
109
- ${{runner.os}}-${{matrix.node_version}}-${{matrix.eslint_version}}-${{matrix. graphql_version}}-node-modules-${{hashFiles('yarn.lock')}}
110
- ${{runner.os}}-${{matrix.node_version}}-${{matrix.eslint_version}}-${{matrix. graphql_version}}-node-modules-
108
+ ${{runner.os}}-${{matrix.node_version}}-${{matrix.graphql_version}}-node-modules-${{hashFiles('yarn.lock')}}
109
+ ${{runner.os}}-${{matrix.node_version}}-${{matrix.graphql_version}}-node-modules-
111
110
112
111
- name : Use GraphQL v${{matrix.graphql_version}}
113
112
run : node scripts/match-graphql.mjs ${{matrix.graphql_version}}
114
113
115
- - name : Use ESLint v${{matrix.eslint_version}}
116
- run : node scripts/match-eslint.mjs ${{matrix.eslint_version}}
117
-
118
114
- name : Install Dependencies
119
115
run : yarn
120
116
121
117
- name : Cache Jest
122
118
uses : actions/cache@v3
123
119
with :
124
120
path : .cache/jest
125
- key : ${{runner.os}}-${{matrix.node_version}}-${{matrix.eslint_version}}- jest-${{hashFiles('yarn.lock')}}
121
+ key : ${{runner.os}}-${{matrix.node_version}}-jest-${{hashFiles('yarn.lock')}}
126
122
restore-keys : |
127
- ${{runner.os}}-${{matrix.node_version}}-${{matrix.eslint_version}}- jest-${{hashFiles('yarn.lock')}}
128
- ${{runner.os}}-${{matrix.node_version}}-${{matrix.eslint_version}}- jest-
123
+ ${{runner.os}}-${{matrix.node_version}}-jest-${{hashFiles('yarn.lock')}}
124
+ ${{runner.os}}-${{matrix.node_version}}-jest-
129
125
130
126
# We need build for examples.spec.ts test
131
127
# Otherwise we'll get error - Cannot find module 'node_modules/@graphql-eslint/eslint-plugin/dist/index.js'
0 commit comments