-
Notifications
You must be signed in to change notification settings - Fork 7
41 lines (36 loc) · 1.2 KB
/
vrt.yaml
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
name: "vrt"
on:
pull_request:
branches:
- main
jobs:
vrt:
timeout-minutes: 15
env:
SERVER_ENV: local
AWS_REGION: auto # Cloudflare R2's region should be `auto`.
AWS_ACCESS_KEY_ID: ${{ secrets.CLOUDFLARE_R2_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.CLOUDFLARE_R2_SECRET_ACCESS_KEY }}
REG_SUIT_GITHUB_CLIENT_ID: ${{ secrets.REG_SUIT_GITHUB_CLIENT_ID }}
HASH_PR: ${{ github.event.pull_request.head.sha }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
# See: https://github.com/actions/checkout#checkout-pull-request-head-commit-instead-of-merge-commit
ref: ${{ github.event.pull_request.head.sha }}
- uses: actions/setup-node@v4
with:
node-version: 20
cache: npm
- name: cache playwright browsers
id: playwright-cache
uses: actions/cache@v4
with:
path: ~/.cache/ms-playwright
key: playwright-${{ hashFiles('**/package-lock.json') }}
- run: npm ci
- name: install system dependencies for Playwright
run: npx playwright install-deps chromium
- run: npm run build
- run: npm run vrt