-
Notifications
You must be signed in to change notification settings - Fork 35
34 lines (28 loc) · 1.02 KB
/
happo-tests-main.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
name: Happo CI (main)
on:
push:
branches: [main]
jobs:
happo:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v4.1.6
- name: Set up node
uses: actions/setup-node@v4
with:
cache: 'yarn'
node-version-file: '.tool-versions'
- name: Install dependencies
run: yarn install --frozen-lockfile
# Rebuild the "canvas" dependency, when you yarn install canvas it doesn't come with a prebuilt binary
# this means we gotta build the binary itself before we yarn install.
# Expect this to be a required step until they release https://github.com/Automattic/node-canvas/releases/tag/v3.0.0-rc2
- name: Rebuild dependencies without binaries
run: |
./scripts/rebuild-dependencies-without-binaries
- name: Start Happo run
run: yarn happo-ci-github-actions
env:
HAPPO_API_KEY: ${{ secrets.HAPPO_API_KEY }}
HAPPO_API_SECRET: ${{ secrets.HAPPO_API_SECRET }}