-
Notifications
You must be signed in to change notification settings - Fork 115
48 lines (38 loc) · 991 Bytes
/
e2e.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
name: E2E
on:
pull_request:
push:
branches:
- main
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
env:
PERCY_POSTINSTALL_BROWSER: true
jobs:
percy:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '18.17.1'
cache: 'yarn'
- name: Install Dependencies 📦
run: yarn install --immutable
- name: Sleep
run: sleep 60
- name: Wait for Vercel Preview
uses: patrickedqvist/wait-for-vercel-preview@main
id: vercel-preview
with:
token: ${{ secrets.GITHUB_TOKEN }}
max_timeout: 200
check_interval: 5
- name: Run Percy
run: yarn test
working-directory: website
env:
TARGET_URL: ${{ steps.vercel-preview.outputs.url }}
PERCY_TOKEN: ${{ secrets.PERCY_TOKEN }}