Skip to content

test: use examples/browser for firefox v12 tests #2026

test: use examples/browser for firefox v12 tests

test: use examples/browser for firefox v12 tests #2026

name: example-start-and-yarn-workspaces
on:
push:
branches:
- 'master'
pull_request:
workflow_dispatch:
jobs:
# ~~~~~~~~~~~~~~~~~~ Cypress v9 and below (using Legacy configuration) ~~~~~~~~~~~~~~~~~~~ #
single-v9:
# the example has Yarn workspace in its "root" folder
# examples/start-and-yarn-workspaces
# and tests in a subfolder like "workspace-1"
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Tests
uses: ./
with:
working-directory: examples/v9/start-and-yarn-workspaces/workspace-1
build: yarn run build
start: yarn start
wait-on: 'http://localhost:5000'
multiple-v9:
# example with web application build,
# server start and waiting for the server
# to respond before running tests
# in each Yarn workspaces subfolder
runs-on: ubuntu-22.04
strategy:
# when one test fails, DO NOT cancel the other
# containers, because this will kill Cypress processes
# leaving Cypress Cloud hanging ...
# https://github.com/cypress-io/github-action/issues/48
fail-fast: false
matrix:
cypress:
- working_directory: examples/v9/start-and-yarn-workspaces/workspace-1
- working_directory: examples/v9/start-and-yarn-workspaces/workspace-2
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Cypress tests
uses: ./
with:
working-directory: ${{ matrix.cypress.working_directory }}
build: yarn run build
start: yarn start
wait-on: 'http://localhost:5000'
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Cypress v10 and higher ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ #
single:
# the example has Yarn workspace in its "root" folder
# examples/start-and-yarn-workspaces
# and tests in a subfolder like "workspace-1"
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Single
uses: ./
with:
working-directory: examples/start-and-yarn-workspaces/workspace-1
build: yarn run build
start: yarn start
wait-on: 'http://localhost:5000'
multiple:
# example with web application build,
# server start and waiting for the server
# to respond before running tests
# in each Yarn workspaces subfolder
runs-on: ubuntu-22.04
strategy:
# when one test fails, DO NOT cancel the other
# containers, because this will kill Cypress processes
# leaving the Cypress Cloud hanging ...
# https://github.com/cypress-io/github-action/issues/48
fail-fast: false
matrix:
cypress:
- working_directory: examples/start-and-yarn-workspaces/workspace-1
- working_directory: examples/start-and-yarn-workspaces/workspace-2
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Cypress tests
uses: ./
with:
working-directory: ${{ matrix.cypress.working_directory }}
build: yarn run build
start: yarn start
wait-on: 'http://localhost:5000'