Skip to content

Commit

Permalink
ci: simplify test matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
ChALkeR committed Jul 17, 2024
1 parent 8a2d91f commit 4dd82c5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/checks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,12 @@ jobs:

check:
runs-on: ubuntu-latest
name: '${{ matrix.command }} on node ${{ matrix.node-version }}'
name: 'Test on Node.js ${{ matrix.node-version }}'
timeout-minutes: 10
strategy:
fail-fast: false
matrix:
node-version: ['22.4', '20.11', '20.8.0', '18.19.0']
command: ['test', 'test:tape']
steps:
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29
- uses: pnpm/action-setup@18ac635edf3d6cd3e88d281bceecc25c4dbc1e73
Expand All @@ -47,4 +46,4 @@ jobs:
cache: pnpm
registry-url: 'https://registry.npmjs.org'
- run: pnpm i --frozen-lockfile
- run: pnpm ${{ matrix.command }}
- run: pnpm test:all
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,9 @@
"CHANGELOG.md"
],
"scripts": {
"test": "./bin/index.js --jest --esbuild",
"test": "npm run test:jest",
"test:all": "npm run test:jest && npm run test:tape",
"test:jest": "./bin/index.js --jest --esbuild",
"test:tape": "./bin/index.js --esbuild '__test__/tape/test/*.js' __test__/tape.test.js",
"coverage": "./bin/index.js --jest --esbuild --coverage",
"lint": "prettier --list-different . && eslint .",
Expand Down

0 comments on commit 4dd82c5

Please sign in to comment.