Skip to content

Commit

Permalink
Ensure Cypress binary is cached
Browse files Browse the repository at this point in the history
  • Loading branch information
davidmyersdev committed Oct 6, 2023
1 parent b96fa6e commit fbf7c1f
Showing 1 changed file with 23 additions and 12 deletions.
35 changes: 23 additions & 12 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,10 @@ jobs:
- name: Setup pnpm cache
uses: actions/cache@v3
with:
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
path: ${{ env.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}-v2
path: |
${{ env.STORE_PATH }}
~/.cache/Cypress
restore-keys: ${{ runner.os }}-pnpm-store-
- name: Install dependencies
run: pnpm install --shamefully-hoist
Expand All @@ -88,8 +90,10 @@ jobs:
- name: Setup pnpm cache
uses: actions/cache@v3
with:
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
path: ${{ env.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}-v2
path: |
${{ env.STORE_PATH }}
~/.cache/Cypress
restore-keys: ${{ runner.os }}-pnpm-store-
- name: Install dependencies
run: pnpm install --shamefully-hoist
Expand Down Expand Up @@ -118,16 +122,19 @@ jobs:
- name: Setup pnpm cache
uses: actions/cache@v3
with:
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
path: ${{ env.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}-v2
path: |
${{ env.STORE_PATH }}
~/.cache/Cypress
restore-keys: ${{ runner.os }}-pnpm-store-
- name: Install dependencies
run: pnpm install --shamefully-hoist
- run: docker-compose up -d
- uses: cypress-io/github-action@v4.2.2
- uses: cypress-io/github-action@v6.5.0
with:
config: baseUrl=http://localhost:8889
build: pnpm build
config: baseUrl=http://localhost:8889
install: false
start: pnpm preview
wait-on: 'http://localhost:8889,http://localhost:32777'
- uses: actions/upload-artifact@v3
Expand Down Expand Up @@ -163,8 +170,10 @@ jobs:
- name: Setup pnpm cache
uses: actions/cache@v3
with:
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
path: ${{ env.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}-v2
path: |
${{ env.STORE_PATH }}
~/.cache/Cypress
restore-keys: ${{ runner.os }}-pnpm-store-
- name: Install dependencies
run: pnpm install --shamefully-hoist
Expand Down Expand Up @@ -193,8 +202,10 @@ jobs:
- name: Setup pnpm cache
uses: actions/cache@v3
with:
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
path: ${{ env.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}-v2
path: |
${{ env.STORE_PATH }}
~/.cache/Cypress
restore-keys: ${{ runner.os }}-pnpm-store-
- name: Install dependencies
run: pnpm install --shamefully-hoist
Expand Down

0 comments on commit fbf7c1f

Please sign in to comment.