-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove replay and ensure that we don't send tests to Cypress Cloud fo…
…r Dependabot PRs
- Loading branch information
Showing
7 changed files
with
441 additions
and
831 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 |
---|---|---|
|
@@ -115,27 +115,12 @@ jobs: | |
run: npx wp-env start --debug | ||
|
||
- name: Run Cypress Tests | ||
env: | ||
RECORD_REPLAY_API_KEY: ${{ secrets.RECORD_REPLAY_API_KEY }} | ||
if: ${{ github.repository != 'bluehost/bluehost-wordpress-plugin' || env.RECORD_REPLAY_API_KEY == '' }} | ||
run: npx cypress run | ||
if: ${{ github.repository != 'bluehost/bluehost-wordpress-plugin' || github.actor == 'dependabot[bot]' }} | ||
run: npm run test:e2e -- -browser chrome | ||
|
||
- name: Run Cypress Tests | ||
uses: replayio/[email protected] | ||
env: | ||
RECORD_REPLAY_METADATA_TEST_RUN_TITLE: "php-${{ matrix.phpVersion }}, wp-${{ matrix.wpVersion }}" | ||
RECORD_REPLAY_API_KEY: ${{ secrets.RECORD_REPLAY_API_KEY }} | ||
if: ${{ github.repository == 'bluehost/bluehost-wordpress-plugin' && env.RECORD_REPLAY_API_KEY != '' }} | ||
with: | ||
api-key: ${{ secrets.RECORD_REPLAY_API_KEY }} | ||
browser: 'replay-chromium' | ||
command: npm run test:e2e -- --record --key ${{ secrets.CYPRESS_RECORD_KEY }} --tag bluehost,php-${{ matrix.phpVersion }},wp-${{ matrix.wpVersion }} | ||
upload-all: false | ||
|
||
- name: List Replays | ||
if: always() | ||
shell: bash | ||
run: npx @replayio/replay ls --json | ||
if: ${{ github.repository == 'bluehost/bluehost-wordpress-plugin' && github.actor != 'dependabot[bot]' }} | ||
run: npm run test:e2e -- -browser chrome --record --key ${{ secrets.CYPRESS_RECORD_KEY }} --tag "bluehost,php-${{ matrix.phpVersion }},wp-${{ matrix.wpVersion }}" | ||
|
||
- name: Store screenshots of test failures | ||
if: ${{ failure() }} | ||
|
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 |
---|---|---|
|
@@ -98,27 +98,13 @@ jobs: | |
- name: Install WordPress | ||
run: npx wp-env start --debug | ||
|
||
- name: Run Cypress Beta Only Tests | ||
env: | ||
RECORD_REPLAY_API_KEY: ${{ secrets.RECORD_REPLAY_API_KEY }} | ||
if: ${{ github.repository != 'bluehost/bluehost-wordpress-plugin' || env.RECORD_REPLAY_API_KEY == '' }} | ||
run: npx cypress run | ||
- name: Run Cypress Tests | ||
if: ${{ github.repository != 'bluehost/bluehost-wordpress-plugin' || github.actor == 'dependabot[bot]' }} | ||
run: npm run test:e2e -- -browser chrome | ||
|
||
- name: Run Cypress Beta Only Tests | ||
uses: replayio/[email protected] | ||
env: | ||
RECORD_REPLAY_API_KEY: ${{ secrets.RECORD_REPLAY_API_KEY }} | ||
if: ${{ github.repository == 'bluehost/bluehost-wordpress-plugin' && env.RECORD_REPLAY_API_KEY != '' }} | ||
with: | ||
api-key: ${{ secrets.RECORD_REPLAY_API_KEY }} | ||
browser: 'replay-chromium' | ||
command: npm run test:e2e -- --record --key ${{ secrets.CYPRESS_RECORD_KEY }} | ||
upload-all: false | ||
|
||
- name: List Replays | ||
if: always() | ||
shell: bash | ||
run: npx @replayio/replay ls --json | ||
- name: Run Cypress Tests | ||
if: ${{ github.repository == 'bluehost/bluehost-wordpress-plugin' && github.actor != 'dependabot[bot]' }} | ||
run: npm run test:e2e -- -browser chrome --record --key ${{ secrets.CYPRESS_RECORD_KEY }} --tag "bluehost, wp-beta" | ||
|
||
- name: Store screenshots of test failures | ||
if: failure() | ||
|
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 |
---|---|---|
|
@@ -102,26 +102,12 @@ jobs: | |
run: npx wp-env start --debug | ||
|
||
- name: Run Cypress Tests | ||
env: | ||
RECORD_REPLAY_API_KEY: ${{ secrets.RECORD_REPLAY_API_KEY }} | ||
if: ${{ github.repository != 'bluehost/bluehost-wordpress-plugin' || env.RECORD_REPLAY_API_KEY == '' }} | ||
run: npx cypress run | ||
if: ${{ github.repository != 'bluehost/bluehost-wordpress-plugin' || github.actor == 'dependabot[bot]' }} | ||
run: npm run test:e2e -- -browser chrome | ||
|
||
- name: Run Cypress Tests | ||
uses: replayio/[email protected] | ||
env: | ||
RECORD_REPLAY_API_KEY: ${{ secrets.RECORD_REPLAY_API_KEY }} | ||
if: ${{ github.repository == 'bluehost/bluehost-wordpress-plugin' && env.RECORD_REPLAY_API_KEY != '' }} | ||
with: | ||
api-key: ${{ secrets.RECORD_REPLAY_API_KEY }} | ||
browser: 'replay-chromium' | ||
command: npm run test:e2e -- --record --key ${{ secrets.CYPRESS_RECORD_KEY }} --tag bluehost | ||
upload-all: false | ||
|
||
- name: List Replays | ||
if: always() | ||
shell: bash | ||
run: npx @replayio/replay ls --json | ||
if: ${{ github.repository == 'bluehost/bluehost-wordpress-plugin' && github.actor != 'dependabot[bot]' }} | ||
run: npm run test:e2e -- -browser chrome --record --key ${{ secrets.CYPRESS_RECORD_KEY }} --tag bluehost | ||
|
||
- name: Store screenshots of test failures | ||
if: failure() | ||
|
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
Oops, something went wrong.