use npm install over npm ci #32
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: FuseJS | |
on: | |
push: | |
paths: | |
- 'js/**' | |
- '.github/workflows/js-unit-tests.yml' | |
pull_request: | |
paths: | |
- 'js/**' | |
- '.github/workflows/js-unit-tests.yml' | |
jobs: | |
unit-test: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node_version: [20.x, 22.x, 23.x] | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.node_version }} | |
- run: npm install # For general tooling | |
- run: npm install # For lib dependencies | |
working-directory: js | |
- run: npm run build | |
working-directory: js | |
- run: npm test | |
working-directory: js |