mirror of
https://github.com/vercel/next-learn.git
synced 2026-06-22 20:25:48 +00:00
Simplify pnpm CI and centralize settings
Co-authored-by: Steven <styfle@users.noreply.github.com>
This commit is contained in:
11
.github/workflows/test.yml
vendored
11
.github/workflows/test.yml
vendored
@@ -16,17 +16,6 @@ jobs:
|
||||
node-version: '20'
|
||||
- name: Enable pnpm
|
||||
run: corepack enable pnpm && corepack install
|
||||
- name: Get pnpm store directory
|
||||
id: pnpm-store
|
||||
shell: bash
|
||||
run: echo "STORE_PATH=$(pnpm store path --silent)" >> "$GITHUB_OUTPUT"
|
||||
- name: Cache pnpm store
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
path: ${{ steps.pnpm-store.outputs.STORE_PATH }}
|
||||
key: pnpm-store-${{ runner.os }}-${{ hashFiles('pnpm-lock.yaml') }}
|
||||
restore-keys: |
|
||||
pnpm-store-${{ runner.os }}-
|
||||
- name: Install dependencies
|
||||
run: pnpm install --frozen-lockfile
|
||||
- name: Run tests
|
||||
|
||||
Reference in New Issue
Block a user