Fix pnpm cache (hopefully)
Some checks failed
CI / Lint (pull_request) Successful in 1m47s
CI / Test (pull_request) Failing after 54s

This commit is contained in:
2026-02-24 17:56:49 +04:00
parent 9a373e8af1
commit 38b525a1b6

View File

@@ -3,6 +3,7 @@ name: CI
on:
push:
branches:
- main
- master
pull_request: {}
@@ -25,7 +26,20 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: 22
cache: pnpm
- name: Get pnpm store directory
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
- uses: actions/cache@v4
name: Setup pnpm cache
with:
path: ${{ env.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Install Dependencies
run: pnpm install --frozen-lockfile
- name: Lint
@@ -45,7 +59,20 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: 22
cache: pnpm
- name: Get pnpm store directory
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
- uses: actions/cache@v4
name: Setup pnpm cache
with:
path: ${{ env.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Install Dependencies
run: pnpm install --frozen-lockfile
- name: Run Tests