@@ -25,17 +25,23 @@ jobs:
2525 uses : actions/cache@v2
2626 with :
2727 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') }}
2929 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-
3232 - name : Install Dependencies using Yarn
3333 run : yarn install && git checkout yarn.lock
3434 - name : Lint
3535 run : yarn lint
3636 typecheck :
3737 name : TypeScript Type Checking
3838 runs-on : ubuntu-latest
39+ strategy :
40+ matrix :
41+ graphql_version :
42+ # - 14
43+ - 15
44+ - 16
3945 steps :
4046 - name : Checkout Master
4147 uses : actions/checkout@v2
@@ -49,10 +55,12 @@ jobs:
4955 uses : actions/cache@v2
5056 with :
5157 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')}}
5359 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}}
5664 - name : Install Dependencies using Yarn
5765 run : yarn install && git checkout yarn.lock
5866 - name : Build
@@ -64,14 +72,18 @@ jobs:
6472 path : packages/plugin/dist
6573
6674 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}}
6876 timeout-minutes : 60
6977 runs-on : ubuntu-latest
70- needs : [lint, typecheck]
78+ needs : [typecheck]
7179 strategy :
7280 matrix :
7381 node_version : [12, 16]
7482 eslint_version : [7.32.0, 8]
83+ graphql_version :
84+ # - 14
85+ - 15
86+ - 16
7587 steps :
7688 - name : Checkout Master
7789 uses : actions/checkout@v2
@@ -85,10 +97,12 @@ jobs:
8597 uses : actions/cache@v2
8698 with :
8799 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')}}
89101 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}}
92106 - name : Use ESLint v${{matrix.eslint_version}}
93107 run : node scripts/match-eslint.mjs ${{matrix.eslint_version}}
94108 - name : Install Dependencies using Yarn
0 commit comments