B 21975 int #27335
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Happo CI | |
on: | |
pull_request: | |
branches: [main,integrationTesting] | |
jobs: | |
changes: | |
runs-on: ubuntu-latest | |
outputs: | |
frontend: ${{ steps.filter.outputs.frontend }} | |
steps: | |
- uses: dorny/paths-filter@v3 | |
id: filter | |
with: | |
filters: | | |
frontend: | |
- 'src/**' | |
- '.storybook/**' | |
- '.happo.js' | |
- 'yarn.lock' | |
happo: | |
needs: changes | |
if: ${{ needs.changes.outputs.frontend == 'true' }} | |
concurrency: | |
group: happo-${{ github.event.action || 'unknown' }}-${{ github.event.pull_request.number || github.ref }} | |
cancel-in-progress: true | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out repository | |
uses: actions/[email protected] | |
- 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 }} |