Skip to content

Commit

Permalink
Merge pull request #10 from mansona/fix-tests
Browse files Browse the repository at this point in the history
Add eslint versions to a test matrix
  • Loading branch information
mansona authored Sep 19, 2022
2 parents a3110d1 + 2fc9910 commit 0787263
Show file tree
Hide file tree
Showing 5 changed files with 1,547 additions and 152 deletions.
7 changes: 7 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,15 @@
"node": true
},
"extends": "airbnb-base",

"overrides": [
{
"parser": "@babel/eslint-parser",
"parserOptions": {
"ecmaVersion": 2021,
"sourceType": "module",
"requireConfigFile": false
},
"files": [
"test/**/*.{mjs,js}"
],
Expand Down
31 changes: 23 additions & 8 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,22 +10,37 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 12
- run: npm i -g npm@7
node-version: 16
cache: npm
- run: npm i -g npm@8
- run: npm ci
- run: npm run lint

test:
name: "test with eslint ${{ matrix.eslint-version}} on node v${{ matrix.node-version }}"
runs-on: ubuntu-latest

strategy:
fail-fast: false
matrix:
eslint-version:
- 7
- 8
node-version:
- 14
- 16
- 18

steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 12
- run: npm i -g npm@7
node-version: ${{ matrix.node-version }}
cache: npm
- run: npm i -g npm@8
- run: npm ci
- run: npm i eslint@${{ matrix.eslint-version }}
- run: npm test
Loading

0 comments on commit 0787263

Please sign in to comment.