forked from cypress-io/github-action
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tests: add chromium example workflow
- Loading branch information
1 parent
4410caf
commit 645f789
Showing
1 changed file
with
41 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
name: example-chromium | ||
on: | ||
push: | ||
branches: | ||
- 'master' | ||
pull_request: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
|
||
tests: | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Chromium headless | ||
uses: ./ | ||
with: | ||
# Print information about the system and current environment | ||
# including detected browsers | ||
# which are pre-installed in GitHub-hosted runners | ||
# see https://on.cypress.io/command-line#cypress-info | ||
# We do not need the build parameter to build an app here | ||
# because the remote https://example.cypress.io site | ||
# is already built and running, and so for convenience | ||
# we repurpose the build parameter to get cypress info instead. | ||
build: npx cypress info | ||
working-directory: examples/browser | ||
browser: chromium | ||
# As of Cypress v8.0 the `cypress run` command | ||
# executes tests in `headless` mode by default | ||
|
||
- name: Chromium headed | ||
uses: ./ | ||
with: | ||
# Cypress and dependencies are already installed | ||
install: false | ||
working-directory: examples/browser | ||
browser: chromium | ||
headed: true |