Skip to content

update Cypress workflow to use specific browser container image #378

update Cypress workflow to use specific browser container image

update Cypress workflow to use specific browser container image #378

Workflow file for this run

name: Cypress Component Tests
on:
push:
pull_request:
types: [opened, reopened]
jobs:
cypress_matrix:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest] #, macos-latest, windows-latest]
browser: [chrome, firefox, edge]
timeout-minutes: 60
runs-on: ${{ matrix.os }}
container:
image: cypress/browsers:22.12.0
options: --user 1001
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Cypress run
uses: cypress-io/github-action@v6
with:
browser: ${{ matrix.browser }}
component: true
record: true
group: "${{ matrix.browser }} on ${{ matrix.os }}"
headed: true
env:
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}