diff --git a/.github/workflows/example-docker.yml b/.github/workflows/example-docker.yml index 762923f1c..052dc294b 100644 --- a/.github/workflows/example-docker.yml +++ b/.github/workflows/example-docker.yml @@ -1,17 +1,25 @@ name: example-docker - on: + push: + branches: + - 'master' + pull_request: workflow_dispatch: jobs: - cypress-run: + docker-browsers: runs-on: ubuntu-22.04 - # Cypress Docker image with Chrome v106 - # and Firefox v106 pre-installed - container: cypress/browsers:node18.12.0-chrome106-ff106 + strategy: + fail-fast: false + matrix: + browser: [chrome, edge, electron, firefox] + # from https://hub.docker.com/r/cypress/browsers/tags + container: + image: cypress/browsers:node-20.5.0-chrome-114.0.5735.133-1-ff-114.0.2-edge-114.0.1823.51-1 + options: --user 1001 steps: - uses: actions/checkout@v3 - - uses: cypress-io/github-action@v5 + - uses: cypress-io/github-action@v6 with: - browser: chrome working-directory: examples/basic + browser: ${{ matrix.browser }}