Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions .github/workflows/example-chrome-for-testing.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: example-chrome-for-testing
on:
push:
branches:
- 'master'
pull_request:
workflow_dispatch:

jobs:
tests:
runs-on: ubuntu-24.04
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Chrome for Testing
# https://github.com/browser-actions/setup-chrome
uses: browser-actions/setup-chrome@v1
with:
chrome-version: 137
- name: Cypress info
uses: ./
with:
# just for full picture after installing Cypress
# print information about detected browsers, etc
# see https://on.cypress.io/command-line#cypress-info
build: npm run info
working-directory: examples/browser
browser: chrome-for-testing
24 changes: 24 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ The following examples demonstrate the actions' functions.
- Select [action version](#action-version)
- Run tests in a given [browser](#browser)
- using [Chrome](#chrome)
- using [Chrome for Testing](#chrome-for-testing)
- using [Firefox](#firefox)
- using [Edge](#edge)
- using [headed mode](#headed)
Expand Down Expand Up @@ -178,6 +179,29 @@ jobs:

[![Chrome example](https://github.com/cypress-io/github-action/actions/workflows/example-chrome.yml/badge.svg)](.github/workflows/example-chrome.yml)

### Chrome for Testing

To install [Google Chrome for Testing](https://developer.chrome.com/blog/chrome-for-testing/), specify a partial or full numerical Chrome for Testing version using [browser-actions/setup-chrome](https://github.com/browser-actions/setup-chrome). Refer to [Chrome for Testing availability](https://googlechromelabs.github.io/chrome-for-testing/) for current versions or [JSON API endpoints](https://github.com/GoogleChromeLabs/chrome-for-testing#json-api-endpoints) for all available versions.

```yml
name: Chrome for Testing
on: push
jobs:
chrome:
runs-on: ubuntu-24.04
name: E2E on Chrome for Testing
steps:
- uses: actions/checkout@v4
- uses: browser-actions/setup-chrome@v1
with:
chrome-version: 137
- uses: cypress-io/github-action@v6
with:
browser: chrome-for-testing
```

[![Chrome for Testing example](https://github.com/cypress-io/github-action/actions/workflows/example-chrome-for-testing.yml/badge.svg)](.github/workflows/example-chrome-for-testing.yml)

### Firefox

```yml
Expand Down