📸 Create All Base Images #19
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 All Regression Test | |
on: | |
workflow_dispatch: | |
concurrency: | |
group: ${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
CreateBaseImages: | |
runs-on: ubuntu-22.04 | |
env: | |
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }} | |
TURBO_TEAM: ${{ secrets.TURBO_TEAM }} | |
TURBO_REMOTE_ONLY: true | |
HUSKY: 0 | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 2 | |
- uses: ./.github/workflows/actions/setup | |
- uses: ./.github/workflows/actions/test-setup | |
- name: Run Cypress | |
uses: cypress-io/github-action@v5 | |
with: | |
start: npm run cy:start | |
wait-on: 'http://localhost:3333' | |
working-directory: test | |
install: false | |
browser: chrome | |
env: type=base | |
spec: | | |
cypress/e2e/visual/*.cy.ts | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Upload snapshots | |
uses: actions/upload-artifact@v3 | |
if: failure() | |
with: | |
name: cypress-snapshots | |
path: packages/components/cypress/snapshots | |
- name: Commit base images | |
uses: EndBug/add-and-commit@v9 | |
with: | |
message: 'chore(): update base images' | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |