Skip to content

Commit

Permalink
updats snapshot pipeline to cache assets
Browse files Browse the repository at this point in the history
  • Loading branch information
aristidesstaffieri committed Jul 22, 2024
1 parent 9e8905c commit 8a83983
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions .github/workflows/runSnapshots.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,19 @@ jobs:
uses: actions/checkout@v3
with:
ref: ${{ github.event.inputs.branch }}
- name: Install docker # Taken from https://github.com/actions/virtual-environments/issues/1143#issuecomment-652264388
run: |
mkdir -p ~/.docker/machine/cache
curl -Lo ~/.docker/machine/cache/boot2docker.iso https://github.com/boot2docker/boot2docker/releases/download/v19.03.12/boot2docker.iso
brew install docker docker-machine
docker-machine create --driver virtualbox default
docker-machine env default
- run: npm install -g yarn && yarn
- run: npx playwright install --with-deps chromium
- name: Set up cache
id: cache
uses: actions/cache@v4
with:
key: cache/${{github.repository}}/${{github.ref}}
restore-keys: cache/${{github.repository}}/refs/heads/master
path: .extension/e2e-tests/**
- run: yarn setup
- run: yarn build:freighter-api
- run: yarn build:extension
- name: Initialize snapshots
if: ${{steps.cache.outputs.cache-hit != 'true'}}
run: yarn test:e2e --update-snapshots
- run: yarn test:e2e

0 comments on commit 8a83983

Please sign in to comment.