Skip to content

Commit

Permalink
update CI matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
goto-bus-stop committed Nov 15, 2022
1 parent 09b2740 commit 0aa0138
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 11 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,25 +8,25 @@ jobs:

strategy:
matrix:
node-version: [4.x, 6.x, 8.x, 9.x, 10.x, 11.x, 12.x]
node-version: [4.x, 6.x, 8.x, 9.x, 10.x, 12.x, 14.x, 16.x, 18.x, 19.x]

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- run: npm install
- run: npm test
- run: npm run tests-only

lint:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Linting
uses: goto-bus-stop/standard-action@v1
- uses: actions/checkout@v3
- name: Use Node.js
uses: actions/setup-node@v3
with:
annotate: true
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
node-version: lts/*
- run: npm install
- run: npm run lint
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@
"url": "https://github.com/goto-bus-stop/qs-stringify.git"
},
"scripts": {
"test": "standard && tape test/*.js | tap-spec"
"lint": "standard",
"tests-only": "tape test/*.js",
"test": "npm run lint && npm run tests-only | tap-spec"
}
}

0 comments on commit 0aa0138

Please sign in to comment.