Skip to content
This repository was archived by the owner on Apr 17, 2025. It is now read-only.

resolve issue with cache dir #1463

resolve issue with cache dir

resolve issue with cache dir #1463

Workflow file for this run

name: Push checks
on: [push]
jobs:
Checkout:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Setup Node.js environment
uses: actions/setup-node@v3
with:
node-version: 20
cache: 'yarn'
cache-dependency-path: yarn.lock
- name: Check out code
uses: actions/checkout@v3
with:
fetch-depth: 1
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"
- uses: actions/cache@v3
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Installing dependencies
run: yarn install --frozen-lockfile
- name: Lint biome
run: yarn biome ci .
- name: Build
run: yarn build
- name: Tests
run: yarn test