Bump actions/setup-node from 7e24a656e1c7a0d6f3eaef8d8e84ae379a5b035b to 5e2628c959b9ade56971c0afcebbe5332d44b398 #29
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 | |
| - beta | |
| pull_request: {} | |
| workflow_dispatch: {} | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| if: ${{ !contains(github.event.head_commit.message, '[skip ci]') }} | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| steps: | |
| - name: 📥 Checkout repository | |
| uses: actions/checkout@8edcb1bdb4e267140fa742c62e395cd74f332709 # main | |
| - name: 🟢 Setup Node.js | |
| uses: actions/setup-node@5e2628c959b9ade56971c0afcebbe5332d44b398 # main | |
| with: | |
| node-version-file: ".nvmrc" | |
| cache: "npm" | |
| - name: 🗄 Cache node_modules | |
| id: cache-node_modules | |
| uses: actions/cache@640a1c2554105b57832a23eea0b4672fc7a790d5 # main | |
| with: | |
| path: "**/node_modules" | |
| key: node_modules-${{ runner.os }}-${{ hashFiles('**/package-lock.json') }} | |
| - name: 🗄 Cache .eslintcache | |
| uses: actions/cache@640a1c2554105b57832a23eea0b4672fc7a790d5 # main | |
| with: | |
| path: .eslintcache | |
| key: eslintcache-${{ runner.os }}-${{ hashFiles('**/package-lock.json') }} | |
| - name: 🔍 Install dependencies | |
| if: steps.cache-node_modules.outputs.cache-hit != 'true' | |
| run: | | |
| npm ci --ignore-scripts --prefer-offline --no-audit | |
| - name: 🧪 Run tests | |
| run: | | |
| npm test | |
| env: | |
| CI: true |