This repository has been archived by the owner on Sep 11, 2024. It is now read-only.
Bump cypress-io/github-action from 6.7.2 to 6.7.5 #980
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: Cypress E2E Tests | |
on: [push] | |
jobs: | |
cypress-ubuntu-22: | |
timeout-minutes: 10 | |
strategy: | |
matrix: | |
os: [ubuntu-22.04] # ubuntu-24.04 doesn't have a working firefox yet | |
node: [20, 22] | |
runs-on: ${{ matrix.os }} | |
name: ${{ matrix.os }}, Node v${{ matrix.node }} | |
steps: | |
- name: Setup Node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.node }} | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Cypress run Chrome | |
uses: cypress-io/github-action@v6.7.5 | |
with: | |
record: false | |
cache-key: node-v${{ matrix.node }}-on-${{ runner.os }}-hash-${{ hashFiles('yarn.lock') }} | |
browser: chrome | |
build: yarn run build | |
start: yarn run start | |
wait-on: 'http://localhost:9000' | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Cypress run Firefox | |
uses: cypress-io/github-action@v6.7.5 | |
with: | |
record: false | |
cache-key: node-v${{ matrix.node }}-on-${{ runner.os }}-hash-${{ hashFiles('yarn.lock') }} | |
browser: firefox | |
build: echo # Already built from Chrome test | |
start: echo # Already running from Chrome test | |
wait-on: 'http://localhost:9000' | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- uses: actions/upload-artifact@v4 | |
if: failure() | |
with: | |
name: cypress-screenshots | |
path: cypress/screenshots |