Skip to content

Improve feature/pass-spec-directly #317

Improve feature/pass-spec-directly

Improve feature/pass-spec-directly #317

Workflow file for this run

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@v3
- uses: actions/setup-node@v3
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@v1.2.0
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 }}