Merge pull request #193 from ericmasiello/refactor/grid-for-nav #67
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: Cypress Tests | |
on: [push] | |
jobs: | |
cypress-run: | |
runs-on: ubuntu-latest | |
container: cypress/browsers:node-18.15.0-chrome-111.0.5563.146-1-ff-111.0.1-edge-111.0.1661.62-1 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Cypress e2e tests 🔨 | |
uses: cypress-io/[email protected] | |
with: | |
start: npm run dev | |
# quote the url to be safe against YML parsing surprises | |
wait-on: 'http://localhost:4321' | |
wait-on-timeout: 300 | |
browser: chrome | |
headed: false | |
record: true | |
parallel: true | |
env: | |
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }} | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Cypress visual tests 🧪 | |
uses: cypress-io/[email protected] | |
with: | |
# No need to run `npm run dev` because the server is still running from the previous step | |
wait-on: 'http://localhost:4321' | |
wait-on-timeout: 300 | |
browser: chrome | |
record: false | |
parallel: false | |
command: npm run visual | |
env: | |
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }} | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
PERCY_TOKEN: ${{ secrets.PERCY_TOKEN }} |