Skip to content

Commit

Permalink
cache pnpm
Browse files Browse the repository at this point in the history
  • Loading branch information
aarol committed Jun 14, 2023
1 parent 92aceff commit c8da7e2
Showing 1 changed file with 22 additions and 4 deletions.
26 changes: 22 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
name: "Test"

on:
push
on: push

jobs:
cypress-run:
Expand All @@ -12,10 +11,29 @@ jobs:
- uses: actions/setup-node@v3
with:
node-version: 18
- run: npm i -g pnpm
- uses: pnpm/action-setup@v2
with:
version: 6.0.2
run_install: false
- name: Get pnpm store directory
id: pnpm-cache
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
- uses: actions/cache@v3
name: Setup pnpm cache
with:
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Install dependencies
run: pnpm -r install

- name: Cypress run
uses: cypress-io/github-action@v5
with:
start: pnpm dev, pnpm -C ../functions dev
working-directory: ./client
wait-on: 'http://localhost:5001, http://localhost:5173'
wait-on: "http://localhost:5001, http://localhost:5173"

0 comments on commit c8da7e2

Please sign in to comment.