Skip to content

Commit cac864c

Browse files
committed
chore: fix github action
1 parent 5e81b66 commit cac864c

File tree

1 file changed

+28
-4
lines changed

1 file changed

+28
-4
lines changed

.github/workflows/playwright.yml

Lines changed: 28 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,51 @@
11
name: Playwright Tests
22
on:
33
push:
4-
branches: [ main, master ]
4+
branches: [main]
55
pull_request:
6-
branches: [ main, master ]
6+
branches: [main]
77
jobs:
88
test:
9-
timeout-minutes: 60
9+
timeout-minutes: 120
1010
runs-on: ubuntu-latest
1111
steps:
1212
- uses: actions/checkout@v4
13+
1314
- uses: actions/setup-node@v4
1415
with:
1516
node-version: lts/*
17+
18+
- name: Set up Docker
19+
uses: docker/setup-buildx-action@v2
20+
21+
- name: Install Aztec CLI
22+
run: |
23+
curl -s https://install.aztec.network > tmp.sh
24+
bash tmp.sh <<< yes "yes"
25+
26+
- name: Update path
27+
run: echo "/home/runner/.aztec/bin" >> $GITHUB_PATH
28+
29+
- name: Set Aztec version and start sandbox
30+
run: |
31+
aztec-up 0.87.2
32+
aztec start --sandbox &
33+
1634
- name: Install dependencies
35+
working-directory: ./app
1736
run: npm install -g yarn && yarn
37+
1838
- name: Install Playwright Browsers
39+
working-directory: ./app
1940
run: yarn playwright install --with-deps
41+
2042
- name: Run tests
43+
working-directory: ./app
2144
run: yarn test
45+
2246
- uses: actions/upload-artifact@v4
2347
if: ${{ !cancelled() }}
2448
with:
2549
name: playwright-report
26-
path: playwright-report/
50+
path: app/playwright-report/
2751
retention-days: 30

0 commit comments

Comments
 (0)