Skip to content

Commit

Permalink
Fix the package test script in the GitHub Actions CI environment.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaydenseric committed Jul 2, 2024
1 parent 5a8d115 commit 468b8a3
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
13 changes: 11 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,14 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
- name: npm install and test
run: npm install-test
- name: npm install
run: npm install
- name: ESLint
run: npm run eslint
- name: Prettier
run: npm run prettier
- name: Type check
run: npm run types
- name: Tests
shell: bash
run: npm run tests
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
"eslint": "eslint",
"prettier": "prettier -c .",
"types": "tsc -p jsconfig.json",
"tests": "coverage-node --test-reporter=spec --test **/*.test.mjs",
"tests": "coverage-node --test-reporter=spec --test $(echo **/*.test.mjs)",
"test": "npm run eslint && npm run prettier && npm run types && npm run tests",
"prepublishOnly": "npm test"
}
Expand Down

0 comments on commit 468b8a3

Please sign in to comment.