Test i18n and versioning #304
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: 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/[email protected] | |
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 }} |