build(deps): bump actions/setup-node from 6.3.0 to 6.4.0 #537
Workflow file for this run
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: Test | |
| on: | |
| push: | |
| branches: [ main ] | |
| pull_request: | |
| branches: [ main ] | |
| permissions: | |
| contents: read | |
| jobs: | |
| test: | |
| name: Node | |
| runs-on: ubuntu-24.04 | |
| strategy: | |
| matrix: | |
| node-version: [ 18, 20, 22, 24 ] | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| - name: Setup Node ${{ matrix.node-version }} | |
| uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0 | |
| with: | |
| node-version: ${{ matrix.node-version }} | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Build | |
| run: npm run build | |
| - name: Test | |
| run: npm test | |
| dependencies: | |
| name: Dependencies | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| - name: Test | |
| run: | | |
| if [ -f "package-lock.json" ]; then | |
| if grep -q '"version": "' package-lock.json && ! grep -q '"from": "git"' package-lock.json; then | |
| echo "Dependencies are properly locked" | |
| else | |
| echo "Error: Some dependencies are not properly locked" | |
| exit 1 | |
| fi | |
| else | |
| echo "Error: package-lock.json file is missing in app directory" | |
| exit 1 | |
| fi |