chg: 💚 Update chromatic workflow to be executed when push on main ins… #13
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: Run tests on PRs | |
on: | |
pull_request: | |
jobs: | |
run-tests: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Setup pnpm | |
uses: pnpm/[email protected] | |
with: | |
version: 8.x | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Cypress run | |
uses: cypress-io/github-action@v5 | |
with: | |
config-file: cypress.json | |
build: pnpm cy:prepare | |
command: pnpm cy:run |