chore(deps): Bump actions/cache from b7e8d49f17405cc70c1c120101943203… #130
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@0c366fd6a839edf440554fa01a7085ccba70ac98 # main | |
| - name: 🟢 Setup Node.js | |
| uses: actions/setup-node@54045abd5dcd3b0fee9ca02fa24c57545834c9cc # main | |
| with: | |
| node-version-file: ".tool-versions" | |
| cache: "npm" | |
| - name: 🗄 Cache node_modules | |
| id: cache-node_modules | |
| uses: actions/cache@565629816435f6c0b50676926c9b05c254113c0c # main | |
| with: | |
| path: "**/node_modules" | |
| key: node_modules-${{ runner.os }}-${{ hashFiles('**/package-lock.json') }} | |
| - name: 🗄 Cache .eslintcache | |
| uses: actions/cache@565629816435f6c0b50676926c9b05c254113c0c # 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 | |
| env: | |
| CI: true | |
| run: | | |
| npm test |