Skip to content

Commit 2558ee6

Browse files
authored
test: add live docker example (#1020)
1 parent cdb79e3 commit 2558ee6

File tree

2 files changed

+27
-0
lines changed

2 files changed

+27
-0
lines changed

.github/workflows/example-docker.yml

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: example-docker
2+
on:
3+
push:
4+
branches:
5+
- 'master'
6+
pull_request:
7+
workflow_dispatch:
8+
9+
jobs:
10+
docker-browsers:
11+
runs-on: ubuntu-22.04
12+
strategy:
13+
fail-fast: false
14+
matrix:
15+
browser: [chrome, edge, electron, firefox]
16+
# from https://hub.docker.com/r/cypress/browsers/tags
17+
container:
18+
image: cypress/browsers:node-20.5.0-chrome-114.0.5735.133-1-ff-114.0.2-edge-114.0.1823.51-1
19+
options: --user 1001
20+
steps:
21+
- uses: actions/checkout@v3
22+
- uses: cypress-io/github-action@v6
23+
with:
24+
working-directory: examples/basic
25+
browser: ${{ matrix.browser }}

README.md

+2
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,8 @@ Include `options: --user 1001` to avoid permissions issues.
239239

240240
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.
241241

242+
[![Docker example](https://github.com/cypress-io/github-action/workflows/example-docker/badge.svg?branch=master)](.github/workflows/example-docker.yml)
243+
242244
### Env
243245

244246
Specify the env argument with `env` parameter

0 commit comments

Comments
 (0)