diff --git a/.github/workflows/example-basic-pnpm.yml b/.github/workflows/example-basic-pnpm.yml index 0d8a7b82f..ed5ff0700 100644 --- a/.github/workflows/example-basic-pnpm.yml +++ b/.github/workflows/example-basic-pnpm.yml @@ -7,109 +7,6 @@ on: workflow_dispatch: jobs: - # ~~~~~~~~~~~~~~~~~~ Cypress v9 and below (using Legacy configuration) ~~~~~~~~~~~~~~~~~~~ # - - basic-pnpm-ubuntu-20-v9: - runs-on: ubuntu-20.04 - steps: - - name: Checkout - uses: actions/checkout@v3 - - - name: Install pnpm - uses: pnpm/action-setup@v2 - with: - version: 7 - - - name: Cypress tests - # normally you would write - # uses: cypress-io/github-action@v5 - uses: ./ - # the parameters below are only necessary - # because we are running these examples in a monorepo - with: - working-directory: examples/v9/basic-pnpm - # just for full picture after installing Cypress - # print information about detected browsers, etc - # see https://on.cypress.io/command-line#cypress-info - build: npx cypress info - - basic-pnpm-ubuntu-22-v9: - runs-on: ubuntu-22.04 - steps: - - name: Checkout - uses: actions/checkout@v3 - - - name: Install pnpm - uses: pnpm/action-setup@v2 - with: - version: 7 - - - name: Cypress tests - uses: ./ - with: - working-directory: examples/v9/basic-pnpm - build: npx cypress info - - basic-pnpm-on-windows-v9: - runs-on: windows-latest - steps: - - name: Checkout - uses: actions/checkout@v3 - - - name: Install pnpm - uses: pnpm/action-setup@v2 - with: - version: 7 - - - name: Cypress tests - uses: ./ - with: - working-directory: examples/v9/basic-pnpm - build: npx cypress info - - basic-pnpm-on-mac-v9: - runs-on: macos-latest - steps: - - name: Checkout - uses: actions/checkout@v3 - - - name: Install pnpm - uses: pnpm/action-setup@v2 - with: - version: 7 - - - name: Cypress tests - uses: ./ - with: - working-directory: examples/v9/basic-pnpm - build: npx cypress info - - # skips the binary installation - # shows that the job should not fail - # https://github.com/cypress-io/github-action/issues/327 - basic-pnpm-without-binary-install-v9: - runs-on: ubuntu-22.04 - steps: - - name: Checkout - uses: actions/checkout@v3 - - - name: Install pnpm - uses: pnpm/action-setup@v2 - with: - version: 7 - - - name: Cypress tests - uses: ./ - with: - working-directory: examples/v9/basic-pnpm - # since we do not install Cypress - # we should not attempt to run tests - runTests: false - env: - # skip the binary install - CYPRESS_INSTALL_BINARY: 0 - - # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Cypress v10 and higher ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # basic-pnpm-ubuntu-20: runs-on: ubuntu-20.04 diff --git a/.github/workflows/example-basic.yml b/.github/workflows/example-basic.yml index 382631723..e29b2f689 100644 --- a/.github/workflows/example-basic.yml +++ b/.github/workflows/example-basic.yml @@ -8,84 +8,6 @@ on: workflow_dispatch: jobs: - # ~~~~~~~~~~~~~~~~~~ Cypress v9 and below (using Legacy configuration) ~~~~~~~~~~~~~~~~~~~ # - - basic-ubuntu-20-v9: - runs-on: ubuntu-20.04 - steps: - - name: Checkout - uses: actions/checkout@v3 - - - name: Cypress tests - # normally you would write - # uses: cypress-io/github-action@v5 - uses: ./ - # the parameters below are only necessary - # because we are running these examples in a monorepo - with: - working-directory: examples/v9/basic - # just for full picture after installing Cypress - # print information about detected browsers, etc - # see https://on.cypress.io/command-line#cypress-info - build: npx cypress info - - basic-ubuntu-22-v9: - runs-on: ubuntu-22.04 - steps: - - name: Checkout - uses: actions/checkout@v3 - - - name: Cypress tests - uses: ./ - with: - working-directory: examples/v9/basic - build: npx cypress info - - basic-on-windows-v9: - runs-on: windows-latest - steps: - - name: Checkout - uses: actions/checkout@v3 - - - name: Cypress tests - uses: ./ - with: - working-directory: examples/v9/basic - build: npx cypress info - - basic-on-mac-v9: - runs-on: macos-latest - steps: - - name: Checkout - uses: actions/checkout@v3 - - - name: Cypress tests - uses: ./ - with: - working-directory: examples/v9/basic - build: npx cypress info - - # skips the binary installation - # shows that the job should not fail - # https://github.com/cypress-io/github-action/issues/327 - basic-without-binary-install-v9: - runs-on: ubuntu-22.04 - steps: - - name: Checkout - uses: actions/checkout@v3 - - - name: Cypress tests - uses: ./ - with: - working-directory: examples/v9/basic - # since we do not install Cypress - # we should not attempt to run tests - runTests: false - env: - # skip the binary install - CYPRESS_INSTALL_BINARY: 0 - - # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Cypress v10 and higher ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # basic-ubuntu-20: runs-on: ubuntu-20.04 diff --git a/.github/workflows/example-chrome.yml b/.github/workflows/example-chrome.yml index 6d76318de..70401c9cd 100644 --- a/.github/workflows/example-chrome.yml +++ b/.github/workflows/example-chrome.yml @@ -8,64 +8,6 @@ on: jobs: - # ~~~~~~~~~~~~~~~~~~ Cypress v9 and below (using Legacy configuration) ~~~~~~~~~~~~~~~~~~~ # - - tests-v9: - runs-on: ubuntu-22.04 - steps: - - name: Checkout - uses: actions/checkout@v3 - - - 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: npx cypress info - working-directory: examples/v9/browser - - - name: Chrome - uses: ./ - with: - working-directory: examples/v9/browser - browser: chrome - - - uses: actions/upload-artifact@v3 - with: - name: screenshots-in-chrome-v9 - path: examples/v9/browser/cypress/screenshots - - - uses: actions/upload-artifact@v3 - with: - name: video-in-chrome-v9 - path: examples/v9/browser/cypress/videos - - - run: npx image-size cypress/screenshots/**/*.png - working-directory: examples/v9/browser - - - name: Chrome headed - uses: ./ - with: - working-directory: examples/v9/browser - browser: chrome - headed: true - - - uses: actions/upload-artifact@v3 - with: - name: screenshots-in-headed-chrome-v9 - path: examples/v9/browser/cypress/screenshots - - - uses: actions/upload-artifact@v3 - with: - name: video-in-headed-chrome-v9 - path: examples/v9/browser/cypress/videos - - - run: npx image-size cypress/screenshots/**/*.png - working-directory: examples/v9/browser - -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Cypress v10 and higher ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # - tests: runs-on: ubuntu-22.04 steps: diff --git a/.github/workflows/example-config.yml b/.github/workflows/example-config.yml index fc3d20ed1..9505edf7e 100644 --- a/.github/workflows/example-config.yml +++ b/.github/workflows/example-config.yml @@ -8,64 +8,6 @@ on: jobs: - # ~~~~~~~~~~~~~~~~~~ Cypress v9 and below (using Legacy configuration) ~~~~~~~~~~~~~~~~~~~ # - - start-v9: - # example where we pass custom base URL - runs-on: ubuntu-22.04 - steps: - - name: Checkout - uses: actions/checkout@v3 - - - name: Cypress tests - uses: ./ - with: - working-directory: examples/v9/config - build: npm run build - start: npm start - wait-on: 'http://localhost:3333' - config: baseUrl=http://localhost:3333 - - separate-specs-v9: - # example where we pass specs to run via multiple lines - runs-on: ubuntu-22.04 - steps: - - name: Checkout - uses: actions/checkout@v3 - - - name: Cypress tests - uses: ./ - with: - working-directory: examples/v9/config - build: npm run build - start: npm start - wait-on: 'http://localhost:3333' - config: baseUrl=http://localhost:3333 - spec: | - cypress/integration/spec-a.js - cypress/integration/spec-b.js - - separate-specs-with-wildcard-v9: - # example where we pass specs to run via multiple lines and wildcards - runs-on: ubuntu-22.04 - steps: - - name: Checkout - uses: actions/checkout@v3 - - - name: Cypress tests - uses: ./ - with: - working-directory: examples/v9/config - build: npm run build - start: npm start - wait-on: 'http://localhost:3333' - config: baseUrl=http://localhost:3333 - spec: | - cypress/integration/spec-a.js - cypress/**/*-b.js - -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Cypress v10 and higher ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # - start: # example where we pass custom base URL runs-on: ubuntu-22.04 diff --git a/.github/workflows/example-custom-command.yml b/.github/workflows/example-custom-command.yml index 6ee0e7a56..7d08adfe7 100644 --- a/.github/workflows/example-custom-command.yml +++ b/.github/workflows/example-custom-command.yml @@ -8,27 +8,6 @@ on: jobs: - # ~~~~~~~~~~~~~~~~~~ Cypress v9 and below (using Legacy configuration) ~~~~~~~~~~~~~~~~~~~ # - - start-v9: - # example where instead of forming the default "cypress run ..." - # the user can specify their own command - runs-on: ubuntu-22.04 - steps: - - name: Checkout ๐Ÿ›Ž - uses: actions/checkout@v3 - - - name: Custom tests ๐Ÿงช - uses: ./ - with: - command: npm run custom-test - working-directory: examples/v9/custom-command - - - name: Show saved file ๐Ÿ–จ - run: cat examples/v9/custom-command/results.json - -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Cypress v10 and higher ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # - start: # example where instead of forming the default "cypress run ..." # the user can specify their own command diff --git a/.github/workflows/example-env.yml b/.github/workflows/example-env.yml index 0a3e10c6f..a7bf8abc3 100644 --- a/.github/workflows/example-env.yml +++ b/.github/workflows/example-env.yml @@ -14,82 +14,6 @@ env: CYPRESS_environmentName: staging jobs: - # ~~~~~~~~~~~~~~~~~~ Cypress v9 and below (using Legacy configuration) ~~~~~~~~~~~~~~~~~~~ # - - e2e-v9: - runs-on: ubuntu-22.04 - steps: - - name: Checkout - uses: actions/checkout@v3 - - # in the tests below, only the environment - # variable 'environmentName' will be set - - name: Cypress run with env - uses: ./ - with: - working-directory: examples/v9/env - spec: cypress/integration/without-env-spec.js - - with-env-v9: - # in the tests below, in addition to 'environmentName' - # we are passing additional environment variables - # using "--env" command line option - # see https://on.cypress.io/configuration - runs-on: ubuntu-22.04 - steps: - - name: Checkout - uses: actions/checkout@v3 - - - name: Cypress run with env - uses: ./ - with: - working-directory: examples/v9/env - # additional env variables to pass to Cypress specs - # variables are automatically casted - # Cypress.env('host') // 'http://api.dev.local' - # Cypress.env('apiPort') // 4222 - env: host=http://api.dev.local,apiPort=4222 - spec: cypress/integration/spec.js - - with-action-env-v9: - runs-on: ubuntu-22.04 - steps: - - name: Checkout - uses: actions/checkout@v3 - - - name: Cypress run with env - uses: ./ - # GH Actions workflow syntax allows - # each step to add more environment variables - # via additional "env" blocks - env: - CYPRESS_apiPort: 4222 - CYPRESS_host: http://api.dev.local - with: - working-directory: examples/v9/env - spec: cypress/integration/spec.js - - combined-env-v9: - # combination of all 3 ways to pass environment variables - # 'environmentName' value comes from the workflow's environment - # 'apiPort' comes from the step's "env" block - # 'host' is defined in the action's "with: env:" parameter - runs-on: ubuntu-22.04 - steps: - - name: Checkout - uses: actions/checkout@v3 - - - name: Cypress run with env - uses: ./ - env: - CYPRESS_apiPort: 4222 - with: - env: host=http://api.dev.local - working-directory: examples/v9/env - spec: cypress/integration/spec.js - -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Cypress v10 and higher ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # - e2e: runs-on: ubuntu-22.04 steps: diff --git a/.github/workflows/example-firefox.yml b/.github/workflows/example-firefox.yml index 9f47b492f..fd8b7de45 100644 --- a/.github/workflows/example-firefox.yml +++ b/.github/workflows/example-firefox.yml @@ -8,17 +8,6 @@ on: jobs: - # ~~~~~~~~~~~~~~~~~~ Cypress v9 and below (using Legacy configuration) ~~~~~~~~~~~~~~~~~~~ # - - # An example test using the Mozilla Firefox browser with Cypress v9 is no longer included here. - # - # Firefox connects unreliably with Cypress v9, as described in the closed Cypress issue - # https://github.com/cypress-io/cypress/issues/23215. - # It is not planned to resolve the issue in Cypress v9. - # The problem is however resolved in Cypress v10 and later. - -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Cypress v10 and higher ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # - firefox: runs-on: ubuntu-22.04 steps: diff --git a/.github/workflows/example-install-command.yml b/.github/workflows/example-install-command.yml index 96ebb756e..b377a0466 100644 --- a/.github/workflows/example-install-command.yml +++ b/.github/workflows/example-install-command.yml @@ -8,23 +8,6 @@ on: jobs: - # ~~~~~~~~~~~~~~~~~~ Cypress v9 and below (using Legacy configuration) ~~~~~~~~~~~~~~~~~~~ # - - install-command-v9: - runs-on: ubuntu-22.04 - steps: - - name: Checkout - uses: actions/checkout@v3 - - - name: Custom Yarn command - uses: ./ - with: - working-directory: examples/v9/install-command - # https://classic.yarnpkg.com/en/docs/cli/install - install-command: yarn --frozen-lockfile --silent - -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Cypress v10 and higher ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # - install-command: runs-on: ubuntu-22.04 steps: diff --git a/.github/workflows/example-install-only.yml b/.github/workflows/example-install-only.yml index b9a06bf2f..83e19d139 100644 --- a/.github/workflows/example-install-only.yml +++ b/.github/workflows/example-install-only.yml @@ -7,39 +7,6 @@ on: workflow_dispatch: jobs: - # ~~~~~~~~~~~~~~~~~~ Cypress v9 and below (using Legacy configuration) ~~~~~~~~~~~~~~~~~~~ # - - # do not install every dependency in this example - # just install Cypress, but make sure to cache it - install-cypress-only-v9: - runs-on: ubuntu-22.04 - steps: - - name: Checkout ๐Ÿ›Ž - uses: actions/checkout@v3 - - # cache npm modules and Cypress binary folder - # we can use "package-lock.json" as the key file - # to make sure we use the precise Cypress version - # (which is important when using ^ version in package.json) - # see https://github.com/actions/cache - - name: Cache npm and Cypress ๐Ÿ“ฆ - uses: actions/cache@v3 - with: - path: | - ~/.cache/Cypress - node_modules - key: my-cache-${{ runner.os }}-${{ hashFiles('package-lock.json') }} - - - name: Install Cypress ๐Ÿ“ฅ - run: npm i cypress@9.7.0 - - - name: Cypress tests ๐Ÿงช - uses: ./ - with: - working-directory: examples/v9/install-only - install: false - - # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Cypress v10 and higher ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # # do not install every dependency in this example # just install Cypress, but make sure to cache it diff --git a/.github/workflows/example-node-versions.yml b/.github/workflows/example-node-versions.yml index 130b20626..25e6bf363 100644 --- a/.github/workflows/example-node-versions.yml +++ b/.github/workflows/example-node-versions.yml @@ -8,33 +8,6 @@ on: jobs: - # ~~~~~~~~~~~~~~~~~~ Cypress v9 and below (using Legacy configuration) ~~~~~~~~~~~~~~~~~~~ # - - cypress-run-v9: - runs-on: ubuntu-22.04 - # let's make sure Cypress works on several versions of Node - strategy: - fail-fast: false - matrix: - node: [16, 18, 20] - name: Cypress v9 E2E on Node v${{ matrix.node }} - steps: - - name: Setup Node - uses: actions/setup-node@v3 - with: - node-version: ${{ matrix.node }} - - run: node -v - - run: npm -v - - - name: Checkout - uses: actions/checkout@v3 - - - uses: ./ - with: - working-directory: examples/v9/node-versions - -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Cypress v10 and higher ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # - cypress-run: runs-on: ubuntu-22.04 # let's make sure Cypress works on several versions of Node diff --git a/.github/workflows/example-quiet.yml b/.github/workflows/example-quiet.yml index fcbb5279d..287f7fe5c 100644 --- a/.github/workflows/example-quiet.yml +++ b/.github/workflows/example-quiet.yml @@ -8,23 +8,6 @@ on: jobs: - # ~~~~~~~~~~~~~~~~~~ Cypress v9 and below (using Legacy configuration) ~~~~~~~~~~~~~~~~~~~ # - - cypress-run-v9: - runs-on: ubuntu-22.04 - steps: - - name: Checkout - uses: actions/checkout@v3 - # Install npm dependencies, cache them correctly - # and run all Cypress tests with `quiet` parameter - - name: Cypress run - uses: ./ - with: - working-directory: examples/v9/quiet - quiet: true - -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Cypress v10 and higher ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # - cypress-run: runs-on: ubuntu-22.04 steps: diff --git a/.github/workflows/example-recording.yml b/.github/workflows/example-recording.yml index 28003aa1d..ee3ed6385 100644 --- a/.github/workflows/example-recording.yml +++ b/.github/workflows/example-recording.yml @@ -35,66 +35,6 @@ jobs: echo "defined=false" >> $GITHUB_OUTPUT; fi - # ~~~~~~~~~~~~~~~~~~ Cypress v9 and below (using Legacy configuration) ~~~~~~~~~~~~~~~~~~~ # - - parallel-v9: - runs-on: ubuntu-22.04 - needs: [check-record-key] - strategy: - fail-fast: false - matrix: - # run copies of the current job in parallel - containers: [1, 2] - if: needs.check-record-key.outputs.record-key-exists == 'true' - steps: - - name: Checkout - uses: actions/checkout@v3 - - - name: Cypress tests - # normally you would write - # uses: cypress-io/github-action@v5 - uses: ./ - # let's give this action an ID so we can refer - # to its output values later - id: cypress - # Continue the build in case of an error, as we need to set the - # commit status in the next step, both in case of success and failure - continue-on-error: true - with: - working-directory: examples/v9/recording - record: true - parallel: true - group: Recording example v9 - tag: action - - # see "outcome" and "conclusion" of a step doc - # https://docs.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#steps-context - # "output" can be success, failure, cancelled, or skipped - - name: Print Cypress Cloud URL - run: | - echo Cypress finished with: ${{ steps.cypress.outcome }} - echo See results at ${{ steps.cypress.outputs.dashboardUrl }} # note: dashboardUrl is now deprecated - - group-v9: - runs-on: ubuntu-22.04 - needs: [check-record-key] - if: needs.check-record-key.outputs.record-key-exists == 'true' - steps: - - name: Checkout - uses: actions/checkout@v3 - - - name: Cypress tests - # normally you would write - # uses: cypress-io/github-action@v5 - uses: ./ - with: - working-directory: examples/v9/recording - record: true - # no parallel flag, just the group name - group: Recording group v9 - -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Cypress v10 and higher ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # - parallel: runs-on: ubuntu-22.04 needs: [check-record-key] diff --git a/.github/workflows/example-start-and-yarn-workspaces.yml b/.github/workflows/example-start-and-yarn-workspaces.yml index 1afe9ac52..f564666e9 100644 --- a/.github/workflows/example-start-and-yarn-workspaces.yml +++ b/.github/workflows/example-start-and-yarn-workspaces.yml @@ -8,55 +8,6 @@ on: 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 diff --git a/.github/workflows/example-start.yml b/.github/workflows/example-start.yml index dffef8afd..0fb5413ee 100644 --- a/.github/workflows/example-start.yml +++ b/.github/workflows/example-start.yml @@ -14,65 +14,6 @@ env: jobs: - # ~~~~~~~~~~~~~~~~~~ Cypress v9 and below (using Legacy configuration) ~~~~~~~~~~~~~~~~~~~ # - - start-v9: - # example with web application build, - # server start and waiting for the server - # to respond before running tests - runs-on: ubuntu-22.04 - steps: - - name: Checkout - uses: actions/checkout@v3 - - - name: Cypress tests - uses: ./ - with: - working-directory: examples/v9/start - build: npm run build - start: npm start - wait-on: 'http://localhost:3000' - - start-multiple-v9: - # example with web application build - # and several services to start - runs-on: ubuntu-22.04 - steps: - - name: Checkout - uses: actions/checkout@v3 - - - name: Cypress tests - uses: ./ - with: - working-directory: examples/v9/start - build: npm run build - # single start command per line - start: | - npm start - npm run start2 - wait-on: 'http://localhost:8000' - config: 'baseUrl=http://localhost:8000' - - start-multiple-commas-v9: - # example with web application build - # and several services to start - runs-on: ubuntu-22.04 - steps: - - name: Checkout - uses: actions/checkout@v3 - - - name: Cypress tests - uses: ./ - with: - working-directory: examples/v9/start - build: npm run build - # use commas to separate the commands - start: npm start, npm run start2 - wait-on: 'http://localhost:8000' - config: 'baseUrl=http://localhost:8000' - -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Cypress v10 and higher ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # - start: # example with web application build, # server start and waiting for the server diff --git a/.github/workflows/example-wait-on.yml b/.github/workflows/example-wait-on.yml index c8b34740c..5c84b7895 100644 --- a/.github/workflows/example-wait-on.yml +++ b/.github/workflows/example-wait-on.yml @@ -8,181 +8,6 @@ on: jobs: - # ~~~~~~~~~~~~~~~~~~ Cypress v9 and below (using Legacy configuration) ~~~~~~~~~~~~~~~~~~~ # - - wait-v9: - runs-on: ubuntu-22.04 - steps: - - name: Checkout - uses: actions/checkout@v3 - - - name: Cypress tests - uses: ./ - with: - # wait for the URL to respond - # using the default parameter - working-directory: examples/v9/wait-on - start: npm start - wait-on: 'http://localhost:3050' - - wait-server-starts-after-100-seconds-v9: - runs-on: ubuntu-22.04 - steps: - - name: Checkout - uses: actions/checkout@v3 - - - name: Cypress tests - uses: ./ - with: - working-directory: examples/v9/wait-on - start: npm run start-after-100-seconds - wait-on: 'http://localhost:3050' - wait-on-timeout: 110 - - wait2-v9: - runs-on: ubuntu-22.04 - steps: - - name: Checkout - uses: actions/checkout@v3 - - - name: Cypress tests - uses: ./ - with: - working-directory: examples/v9/wait-on - start: npm run start2 - wait-on: 'http://localhost:3050' - - wait2-delay-50-v9: - runs-on: ubuntu-22.04 - steps: - - name: Checkout - uses: actions/checkout@v3 - - - name: Cypress tests - uses: ./ - with: - working-directory: examples/v9/wait-on - start: npm run start-after-50-seconds - wait-on: 'http://localhost:3050' - - wait2-delay-120-v9: - runs-on: ubuntu-22.04 - steps: - - name: Checkout - uses: actions/checkout@v3 - - - name: Cypress tests - uses: ./ - with: - working-directory: examples/v9/wait-on - start: npm run start-after-120-seconds - wait-on: 'http://localhost:3050' - wait-on-timeout: 130 - - wait3-v9: - runs-on: ubuntu-22.04 - steps: - - name: Checkout - uses: actions/checkout@v3 - - name: Cypress tests - uses: ./ - with: - # in this situation the server does not respond - # for the first period causing ETIMEDOUT errors - working-directory: examples/v9/wait-on - start: npm run start3 - wait-on: 'http://localhost:3050' - - wait3-for-200-seconds-v9: - runs-on: ubuntu-22.04 - steps: - - name: Checkout - uses: actions/checkout@v3 - - name: Cypress tests - uses: ./ - with: - # in this situation the server does not respond - # for the first period causing ETIMEDOUT errors - working-directory: examples/v9/wait-on - start: npm run start3-after-200-seconds - wait-on: 'http://localhost:3050' - wait-on-timeout: 210 - - wait4-v9: - runs-on: ubuntu-22.04 - steps: - - name: Checkout - uses: actions/checkout@v3 - - name: Cypress tests - uses: ./ - with: - working-directory: examples/v9/wait-on - start: npm run start4 - wait-on: 'http://localhost:3050' - - wait-multiple-v9: - runs-on: ubuntu-22.04 - steps: - - name: Checkout - uses: actions/checkout@v3 - - name: Cypress tests - uses: ./ - with: - working-directory: examples/v9/wait-on - # use different command formats - start: npm start -- --port 3050, npm run start2 -- --port 3060, node ./index3 --port 3070 - # wait for all services to respond - wait-on: 'http://localhost:3050, http://localhost:3060, http://localhost:3070' - - wait-on-react-scripts-v9: - runs-on: ubuntu-22.04 - steps: - - name: Checkout - uses: actions/checkout@v3 - - name: Cypress tests - uses: ./ - with: - working-directory: examples/v9/react-scripts - start: npm start - wait-on: 'http://127.0.0.1:3000' - - wait-using-custom-command-v9: - runs-on: ubuntu-22.04 - steps: - - name: Checkout - uses: actions/checkout@v3 - - name: Cypress tests - uses: ./ - with: - working-directory: examples/v9/react-scripts - start: npm start - # let's use the wait-on npm package to check the URL - wait-on: 'npx wait-on --timeout 60000 http://127.0.0.1:3000' - - ping-cli-v9: - runs-on: ubuntu-22.04 - steps: - - name: Checkout - uses: actions/checkout@v3 - - name: Install dependencies - uses: bahmutov/npm-install@v1 - - name: Run ping from CLI - run: node src/ping-cli https://example.cypress.io - - wait-on-vite-v9: - runs-on: ubuntu-22.04 - steps: - - name: Checkout - uses: actions/checkout@v3 - - name: Cypress tests - uses: ./ - with: - working-directory: examples/v9/wait-on-vite - start: npx vite --host - wait-on: 'http://localhost:5173' - -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Cypress v10 and higher ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # - wait: runs-on: ubuntu-22.04 steps: diff --git a/.github/workflows/example-webpack.yml b/.github/workflows/example-webpack.yml index c6d8ad128..439110aac 100644 --- a/.github/workflows/example-webpack.yml +++ b/.github/workflows/example-webpack.yml @@ -8,23 +8,6 @@ on: jobs: - # ~~~~~~~~~~~~~~~~~~ Cypress v9 and below (using Legacy configuration) ~~~~~~~~~~~~~~~~~~~ # - - wait-v9: - runs-on: ubuntu-22.04 - steps: - - name: Checkout - uses: actions/checkout@v3 - - - name: Cypress tests - uses: ./ - with: - working-directory: examples/v9/webpack - start: npm start - wait-on: 'http://localhost:8080' - -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Cypress v10 and higher ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # - wait: runs-on: ubuntu-22.04 steps: diff --git a/.github/workflows/example-yarn-classic.yml b/.github/workflows/example-yarn-classic.yml index a1966febe..555f2a8e5 100644 --- a/.github/workflows/example-yarn-classic.yml +++ b/.github/workflows/example-yarn-classic.yml @@ -8,21 +8,6 @@ on: jobs: - # ~~~~~~~~~~~~~~~~~~ Cypress v9 and below (using Legacy configuration) ~~~~~~~~~~~~~~~~~~~ # - - yarn-classic-v9: - runs-on: ubuntu-22.04 - steps: - - name: Checkout - uses: actions/checkout@v3 - - - name: Test with Yarn Classic - uses: ./ - with: - working-directory: examples/v9/yarn-classic - -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Cypress v10 and higher ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # - yarn-classic: runs-on: ubuntu-22.04 steps: diff --git a/.github/workflows/example-yarn-modern-pnp.yml b/.github/workflows/example-yarn-modern-pnp.yml index e4d742cfd..f11d979d7 100644 --- a/.github/workflows/example-yarn-modern-pnp.yml +++ b/.github/workflows/example-yarn-modern-pnp.yml @@ -8,8 +8,6 @@ on: jobs: -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Cypress v10 and higher ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # - yarn-modern-pnp: runs-on: ubuntu-22.04 steps: diff --git a/.github/workflows/example-yarn-modern.yml b/.github/workflows/example-yarn-modern.yml index 40bcd9b6f..755bb2b61 100644 --- a/.github/workflows/example-yarn-modern.yml +++ b/.github/workflows/example-yarn-modern.yml @@ -8,23 +8,6 @@ on: jobs: - # ~~~~~~~~~~~~~~~~~~ Cypress v9 and below (using Legacy configuration) ~~~~~~~~~~~~~~~~~~~ # - - yarn-modern-v9: - runs-on: ubuntu-22.04 - steps: - - name: Checkout - uses: actions/checkout@v3 - - - name: Custom Yarn command - uses: ./ - with: - working-directory: examples/v9/yarn-modern - # https://yarnpkg.com/cli/install - install-command: yarn install - -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Cypress v10 and higher ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # - yarn-modern: runs-on: ubuntu-22.04 steps: