Skip to content

Commit

Permalink
test: add live docker example (#1020)
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeMcC399 authored Sep 6, 2023
1 parent cdb79e3 commit 2558ee6
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/example-docker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: example-docker
on:
push:
branches:
- 'master'
pull_request:
workflow_dispatch:

jobs:
docker-browsers:
runs-on: ubuntu-22.04
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@v6
with:
working-directory: examples/basic
browser: ${{ matrix.browser }}
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,8 @@ Include `options: --user 1001` to avoid permissions issues.

Refer to [cypress-io/cypress-docker-images](https://github.com/cypress-io/cypress-docker-images) for further information about using Cypress Docker images. Cypress offers the [Cypress Docker Factory](https://github.com/cypress-io/cypress-docker-images/tree/master/factory) to generate additional Docker images with selected components and versions.

[![Docker example](https://github.com/cypress-io/github-action/workflows/example-docker/badge.svg?branch=master)](.github/workflows/example-docker.yml)

### Env

Specify the env argument with `env` parameter
Expand Down

0 comments on commit 2558ee6

Please sign in to comment.