chore(ci/cd): adjust workflows ci/cd files to work with actions/cache

This commit is contained in:
Ilia Mashkov
2025-12-30 19:37:25 +03:00
parent 7c94622b95
commit 53e3d6985b
4 changed files with 53 additions and 172 deletions

View File

@@ -31,11 +31,18 @@ jobs:
node-version: '20'
cache: 'yarn'
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT
- name: Persistent Yarn Cache
uses: actions/cache@v4
id: yarn-cache
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Run oxlint
run: yarn oxlint .
- name: Check code formatting
run: yarn dprint check
run: yarn install --frozen-lockfile --prefer-offline