Skip to content

Commit 78b1026

Browse files
committed
chore: add ci caching
1 parent c11db77 commit 78b1026

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

.github/workflows/e2e.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,17 @@ jobs:
1818
- name: Set up Docker
1919
uses: docker/setup-buildx-action@v2
2020

21+
- name: Cache Aztec CLI
22+
uses: actions/cache@v3
23+
id: aztec-cache
24+
with:
25+
path: ~/.aztec
26+
key: ${{ runner.os }}-aztec-${{ hashFiles('**/yarn.lock') }}
27+
restore-keys: |
28+
${{ runner.os }}-aztec-
29+
2130
- name: Install Aztec CLI
31+
if: steps.aztec-cache.outputs.cache-hit != 'true'
2232
run: |
2333
curl -s https://install.aztec.network > tmp.sh
2434
bash tmp.sh <<< yes "yes"
@@ -39,7 +49,17 @@ jobs:
3949
working-directory: ./app
4050
run: npm install -g yarn && yarn
4151

52+
- name: Cache Playwright browsers
53+
uses: actions/cache@v3
54+
id: playwright-cache
55+
with:
56+
path: ~/.cache/ms-playwright
57+
key: ${{ runner.os }}-playwright-${{ hashFiles('**/yarn.lock') }}
58+
restore-keys: |
59+
${{ runner.os }}-playwright-
60+
4261
- name: Install Playwright Browsers
62+
if: steps.playwright-cache.outputs.cache-hit != 'true'
4363
working-directory: ./app
4464
run: yarn playwright install --with-deps
4565

0 commit comments

Comments
 (0)