@@ -64,13 +64,14 @@ jobs:
6464 path : packages/plugin/dist
6565
6666 test :
67- name : Testing on Node ${{matrix.node_version}}
67+ name : Testing on Node ${{matrix.node_version}} with ESLint v${{matrix.eslint_version}}
6868 timeout-minutes : 60
6969 runs-on : ubuntu-latest
7070 needs : [lint, typecheck]
7171 strategy :
7272 matrix :
7373 node_version : [12, 16]
74+ eslint_version : [7.32.0, 8]
7475 steps :
7576 - name : Checkout Master
7677 uses : actions/checkout@v2
@@ -84,20 +85,22 @@ jobs:
8485 uses : actions/cache@v2
8586 with :
8687 path : ' **/node_modules'
87- key : ${{ runner.os }}-${{matrix.node_version}}-node-modules-${{ hashFiles('yarn.lock') }}
88+ key : ${{runner.os}}-${{matrix.node_version}}-${{matrix.eslint_version}}- node-modules-${{hashFiles('yarn.lock')}}
8889 restore-keys : |
89- ${{ runner.os }}-${{matrix.node_version}}-node-modules-${{ hashFiles('yarn.lock') }}
90- ${{ runner.os }}-${{matrix.node_version}}-node-modules-
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-
92+ - name : Use ESLint v${{matrix.eslint_version}}
93+ run : node scripts/match-eslint.mjs ${{matrix.eslint_version}}
9194 - name : Install Dependencies using Yarn
9295 run : yarn install && git checkout yarn.lock
9396 - name : Cache Jest
9497 uses : actions/cache@v2
9598 with :
9699 path : .cache/jest
97- key : ${{ runner.os }}-${{matrix.node_version}}-jest-${{ hashFiles('yarn.lock') }}
100+ key : ${{runner.os}}-${{matrix.node_version}}-${{matrix.eslint_version}}- jest-${{hashFiles('yarn.lock')}}
98101 restore-keys : |
99- ${{ runner.os }}-${{matrix.node_version}}-jest-${{ hashFiles('yarn.lock') }}
100- ${{ runner.os }}-${{matrix.node_version}}-jest-
102+ ${{runner.os}}-${{matrix.node_version}}-${{matrix.eslint_version}}- jest-${{hashFiles('yarn.lock')}}
103+ ${{runner.os}}-${{matrix.node_version}}-${{matrix.eslint_version }}-jest-
101104 # We need build for examples.spec.ts test
102105 # Otherwise we'll get error - Cannot find module 'node_modules/@graphql-eslint/eslint-plugin/dist/index.js'
103106 - name : Download build artifact
0 commit comments