@@ -25,17 +25,23 @@ jobs:
25
25
uses : actions/cache@v2
26
26
with :
27
27
path : ' **/node_modules'
28
- key : ${{ runner.os }}-16-node-modules-${{ hashFiles('yarn.lock') }}
28
+ key : ${{ runner.os }}-16-8-16- node-modules-${{ hashFiles('yarn.lock') }}
29
29
restore-keys : |
30
- ${{ runner.os }}-16-node-modules-${{ hashFiles('yarn.lock') }}
31
- ${{ runner.os }}-16-node-modules-
30
+ ${{ runner.os }}-16-8-16- node-modules-${{ hashFiles('yarn.lock') }}
31
+ ${{ runner.os }}-16-8-16- node-modules-
32
32
- name : Install Dependencies using Yarn
33
33
run : yarn install && git checkout yarn.lock
34
34
- name : Lint
35
35
run : yarn lint
36
36
typecheck :
37
37
name : TypeScript Type Checking
38
38
runs-on : ubuntu-latest
39
+ strategy :
40
+ matrix :
41
+ graphql_version :
42
+ # - 14
43
+ - 15
44
+ - 16
39
45
steps :
40
46
- name : Checkout Master
41
47
uses : actions/checkout@v2
@@ -49,10 +55,12 @@ jobs:
49
55
uses : actions/cache@v2
50
56
with :
51
57
path : ' **/node_modules'
52
- key : ${{ runner.os }}-16-node-modules-${{ hashFiles('yarn.lock') }}
58
+ key : ${{runner.os}}-16-8-${{matrix.graphql_version}}- node-modules-${{hashFiles('yarn.lock')}}
53
59
restore-keys : |
54
- ${{ runner.os }}-16-node-modules-${{ hashFiles('yarn.lock') }}
55
- ${{ runner.os }}-16-node-modules-
60
+ ${{runner.os}}-16-8-${{matrix.graphql_version}}-node-modules-${{hashFiles('yarn.lock')}}
61
+ ${{runner.os}}-16-8-${{matrix.graphql_version}}-node-modules-
62
+ - name : Use GraphQL v${{matrix.graphql_version}}
63
+ run : node ./scripts/match-graphql.js ${{matrix.graphql_version}}
56
64
- name : Install Dependencies using Yarn
57
65
run : yarn install && git checkout yarn.lock
58
66
- name : Build
@@ -64,14 +72,18 @@ jobs:
64
72
path : packages/plugin/dist
65
73
66
74
test :
67
- name : Testing on Node ${{matrix.node_version}} with ESLint v${{matrix.eslint_version}}
75
+ name : Testing on Node ${{matrix.node_version}} with ESLint v${{matrix.eslint_version}} and GraphQL v${{matrix.graphql_version}}
68
76
timeout-minutes : 60
69
77
runs-on : ubuntu-latest
70
- needs : [lint, typecheck]
78
+ needs : [typecheck]
71
79
strategy :
72
80
matrix :
73
81
node_version : [12, 16]
74
82
eslint_version : [7.32.0, 8]
83
+ graphql_version :
84
+ # - 14
85
+ - 15
86
+ - 16
75
87
steps :
76
88
- name : Checkout Master
77
89
uses : actions/checkout@v2
@@ -85,10 +97,12 @@ jobs:
85
97
uses : actions/cache@v2
86
98
with :
87
99
path : ' **/node_modules'
88
- key : ${{runner.os}}-${{matrix.node_version}}-${{matrix.eslint_version}}-node-modules-${{hashFiles('yarn.lock')}}
100
+ key : ${{runner.os}}-${{matrix.node_version}}-${{matrix.eslint_version}}-${{matrix.graphql_version}}- node-modules-${{hashFiles('yarn.lock')}}
89
101
restore-keys : |
90
- ${{runner.os}}-${{matrix.node_version}}-${{matrix.eslint_version}}-node-modules-${{hashFiles('yarn.lock')}}
91
- ${{runner.os}}-${{matrix.node_version}}-${{matrix.eslint_version}}-node-modules-
102
+ ${{runner.os}}-${{matrix.node_version}}-${{matrix.eslint_version}}-${{matrix.graphql_version}}-node-modules-${{hashFiles('yarn.lock')}}
103
+ ${{runner.os}}-${{matrix.node_version}}-${{matrix.eslint_version}}-${{matrix.graphql_version}}-node-modules-
104
+ - name : Use GraphQL v${{matrix.graphql_version}}
105
+ run : node ./scripts/match-graphql.js ${{matrix.graphql_version}}
92
106
- name : Use ESLint v${{matrix.eslint_version}}
93
107
run : node scripts/match-eslint.mjs ${{matrix.eslint_version}}
94
108
- name : Install Dependencies using Yarn
0 commit comments