-
Notifications
You must be signed in to change notification settings - Fork 134
44 lines (39 loc) · 1.29 KB
/
visual.yml
File metadata and controls
44 lines (39 loc) · 1.29 KB
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
name: Visual Tests
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
visual:
runs-on: ubuntu-latest
# skip for external PRs, run for push on main branch
if: ${{ !github.event.pull_request || github.event.pull_request.head.repo.full_name == github.repository }}
steps:
- name: Check out Git repository
uses: actions/checkout@v6
- name: Set up Node.js
uses: actions/setup-node@v6
with:
node-version: 24
- name: Get yarn cache
uses: actions/cache@v5
id: yarn-cache
with:
path: |
**/node_modules
~/.cache
key: ${{ runner.os }}-repo-${{ github.event.pull_request.head.repo.full_name }}-node-24-yarn-${{ hashFiles('**/yarn.lock') }}-${{ hashFiles('.github/workflows/**.yml') }}
- name: Install Node.js dependencies
if: steps.yarn-cache.outputs.cache-hit != 'true'
run: yarn install --frozen-lockfile
- run: yarn build
- run: yarn test:visual
env:
VRT_APIURL: ${{ secrets.VRT_APIURL }}
VRT_APIKEY: ${{ secrets.VRT_APIKEY }}
VRT_PROJECT: ${{ secrets.VRT_PROJECT }}
VRT_BRANCHNAME: ${{ github.head_ref || github.ref_name }}
VRT_CIBUILDID: ${{ github.sha }}