Feat/visual regression #15
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: Visual Regression | |
on: | |
push: | |
branches: -main | |
pull_request: | |
types: | |
- opened | |
- synchronize | |
- reopened | |
- labeled | |
permissions: | |
actions: write | |
contents: read | |
pull-requests: write | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
visual-regression: | |
if: ${{ github.ref_name == 'main' && true || contains(github.event.pull_request.labels.*.name, 'visual-regression') }} | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
persist-credentials: false | |
- name: Setup Node.js environment | |
uses: actions/setup-node@v2.1.4 | |
with: | |
node-version: '20.11' | |
- name: Install Dependencies | |
run: yarn install | |
- name: Build Library | |
run: yarn build:lib | |
- name: Build Documentation | |
run: yarn build:docs | |
- name: Start Web Server as a Daemon | |
run: | | |
yarn start:docs & | |
disown -h %1 | |
- name: Install Playwright browsers + dependencies | |
run: yarn playwright install --with-deps | |
- name: Run Visual Regression | |
run: yarn vr:chromium | |
env: | |
ARGOS_TOKEN: ${{ secrets.ARGOS_TOKEN }} |