Skip to content

Commit

Permalink
Add test:node and test:bare scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
kasperisager authored and mafintosh committed Oct 22, 2024
1 parent 8000635 commit 8a950d6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/test-node.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,10 @@ jobs:
- run: bare-make build
- run: bare-make install
- run: npm test
- run: bare test/all.js
- run: bare-make generate --debug --no-cache
- run: bare-make build
- run: bare-make install
- run: npm test
- run: bare test/all.js
trigger_canary:
if: startsWith(github.ref, 'refs/tags/') # Only run when a new package is published (detects when a new tag is pushed)
runs-on: ubuntu-latest
Expand Down
9 changes: 6 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,13 @@
},
"addon": true,
"scripts": {
"test": "standard && node test/all.js",
"test:all": "standard && brittle test/*.js test/slow/*.js",
"test": "npm run lint && npm run test:bare && npm run test:node",
"test:node": "node test/all.js",
"test:bare": "bare test/all.js",
"test:all": "brittle test/*.js test/slow/*.js",
"test:generate": "brittle -r test/all.js test/*.js",
"bench": "brittle test/bench/*.js"
"bench": "brittle test/bench/*.js",
"lint": "standard"
},
"repository": {
"type": "git",
Expand Down

0 comments on commit 8a950d6

Please sign in to comment.