Skip to content

Commit 42032a4

Browse files
committed
chore: add ci caching
1 parent c11db77 commit 42032a4

File tree

1 file changed

+15
-4
lines changed

1 file changed

+15
-4
lines changed

.github/workflows/e2e.yml

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,14 @@ on:
77
jobs:
88
test:
99
timeout-minutes: 120
10-
runs-on: ubuntu-latest
10+
runs-on: ubuntu-latest-16-cores
1111
steps:
1212
- uses: actions/checkout@v4
1313

1414
- uses: actions/setup-node@v4
1515
with:
1616
node-version: lts/*
17+
cache: 'yarn'
1718

1819
- name: Set up Docker
1920
uses: docker/setup-buildx-action@v2
@@ -31,18 +32,28 @@ jobs:
3132
aztec-up 0.87.2
3233
aztec start --sandbox &
3334
34-
- name: Compile contracts
35-
run: script -e -c "${AZTEC_NARGO:-aztec-nargo} compile"
36-
working-directory: ./contracts
35+
- name: Cache Playwright browsers
36+
uses: actions/cache@v3
37+
id: playwright-cache
38+
with:
39+
path: ~/.cache/ms-playwright
40+
key: playwright-${{ runner.os }}-${{ hashFiles('**/package-lock.json', '**/yarn.lock') }}
41+
restore-keys: |
42+
playwright-${{ runner.os }}-
3743
3844
- name: Install dependencies
3945
working-directory: ./app
4046
run: npm install -g yarn && yarn
4147

4248
- name: Install Playwright Browsers
49+
if: steps.playwright-cache.outputs.cache-hit != 'true'
4350
working-directory: ./app
4451
run: yarn playwright install --with-deps
4552

53+
- name: Compile contracts
54+
run: script -e -c "${AZTEC_NARGO:-aztec-nargo} compile"
55+
working-directory: ./contracts
56+
4657
- name: Deploy contracts
4758
working-directory: ./app
4859
run: yarn deploy-contracts

0 commit comments

Comments
 (0)