Skip to content

Commit

Permalink
fix(workflow): clearly separate tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ArnaudBuchholz committed Oct 11, 2024
1 parent 4a3428c commit 4da3fab
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/reserve-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,9 @@ jobs:
- name: 💿 Install dependencies (Node.js > 14)
if: ${{ matrix.node-version != '12.x' && matrix.node-version != '14.x' }}
run: npm ci
- name: 🧪 Run tests
- name: 🧪 Run tests (Node.js <= 14)
if: ${{ matrix.node-version == '12.x' || matrix.node-version == '14.x' }}
run: npm test:basic
- name: 🧪 Run tests (Node.js > 14)
if: ${{ matrix.node-version != '12.x' && matrix.node-version != '14.x' }}
run: npm test
4 changes: 3 additions & 1 deletion reserve/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,10 @@
"build:sources": "node build/mime --silent && node build/error",
"prebuild": "npm run build:sources",
"build": "node build/bundle && terser dist/core.js --compress --mangle -o dist/core.js && terser src/cli.js --compress --keep-fnames --mangle -o dist/cli.js && node build/size",
"pretest:basic": "npm run build:sources",
"test:basic": "mocha && node tests/integration.mjs",
"pretest": "npm run build:sources",
"test": "standard && nyc mocha && node tests/integration.mjs && (node -e \"if (parseInt(process.version.match(/v(\\d+)/)[1]) > 14) process.exit(1) \" || npm run test:types)",
"test": "standard && nyc mocha && node tests/integration.mjs && npm run test:types",
"test:build": "node tests/integration.mjs dist && node tests/integration.mjs mock && node tests/integration.mjs mjs",
"test:mutation": "stryker run",
"lint": "standard --fix",
Expand Down

0 comments on commit 4da3fab

Please sign in to comment.