Skip to content

Commit

Permalink
chore(CI): add tests for ESLint 8
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelDeBoey committed Aug 23, 2021
1 parent 402a0b8 commit e5af184
Show file tree
Hide file tree
Showing 3 changed files with 607 additions and 346 deletions.
43 changes: 25 additions & 18 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,33 +7,40 @@ on:

jobs:
ci:
name: 'Test: Node ${{ matrix.node-version }} - ESLint ${{ matrix.eslint-version }}'
name: 'Test: Node ${{ matrix.node-version }} - ESLint ${{ matrix.eslint-version }} - GraphQL ${{ matrix.test-graphql }}'
runs-on: ubuntu-latest
strategy:
matrix:
eslint-version: [7.x, 6.x, 5.x]
node-version: [16.x, 14.x, 12.x, 10.x, 8.x, 6.x]
eslint-version: ['^8.0.0-0', 7, 6, 5]
node-version: [16, 14, 12, 10, 8, 6]
test-graphql: [true, false]

exclude:
# eslint 7 does not support node 6 or 8
- eslint-version: 7.x
node-version: 8.x
- eslint-version: 7.x
node-version: 6.x
# eslint 6 does not support node 6
# the version of chalk used in eslint 6 does not support node 8
- eslint-version: 6.x
node-version: 8.x
- eslint-version: 6.x
node-version: 6.x
# @graphql-eslint/eslint-plugin does not support node 6 or 8 or 10
# ESLint 8 does not support node 6, 8 or 10
- eslint-version: '^8.0.0-0'
node-version: 10
- eslint-version: '^8.0.0-0'
node-version: 8
- eslint-version: '^8.0.0-0'
node-version: 6
# ESLint 7 does not support node 6 or 8
- eslint-version: 7
node-version: 8
- eslint-version: 7
node-version: 6
# ESLint 6 does not support node 6
# the version of chalk used in ESLint 6 does not support node 8
- eslint-version: 6
node-version: 8
- eslint-version: 6
node-version: 6
# @graphql-eslint/eslint-plugin does not support node 6, 8 or 10
- test-graphql: true
node-version: 10.x
node-version: 10
- test-graphql: true
node-version: 8.x
node-version: 8
- test-graphql: true
node-version: 6.x
node-version: 6

steps:
- uses: actions/checkout@v2
Expand Down
16 changes: 8 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,15 +36,15 @@
},
"devDependencies": {
"@not-an-aardvark/node-release-script": "^0.1.0",
"eslint": "^7.0.0",
"eslint": "^8.0.0-0",
"eslint-config-not-an-aardvark": "^2.1.0",
"eslint-config-prettier": "^6.0.0",
"eslint-plugin-eslint-plugin": "^2.0.0",
"eslint-plugin-node": "^8.0.0",
"eslint-plugin-self": "^1.1.0",
"mocha": "^6.0.0",
"prettier": "^1.15.3",
"vue-eslint-parser": "^6.0.0"
"eslint-config-prettier": "^6.15.0",
"eslint-plugin-eslint-plugin": "^2.3.0",
"eslint-plugin-node": "^8.0.1",
"eslint-plugin-self": "^1.2.1",
"mocha": "^6.2.3",
"prettier": "^1.19.1",
"vue-eslint-parser": "^6.0.5"
},
"peerDependenciesMeta": {
"eslint-config-prettier": {
Expand Down
Loading

0 comments on commit e5af184

Please sign in to comment.