From 553e1e4d12c4a90f8dbd1bdccd3880a34242a361 Mon Sep 17 00:00:00 2001 From: Mike McCready <66998419+MikeMcC399@users.noreply.github.com> Date: Sat, 2 Sep 2023 17:04:15 +0200 Subject: [PATCH] test: add live docker example --- .github/workflows/example-docker.yml | 22 +++++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) 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 }}