Skip to content

Commit

Permalink
Merge pull request #3283 from 10up/feature/cypress-test-grouping
Browse files Browse the repository at this point in the history
Feature/cypress test grouping
  • Loading branch information
felipeelia authored Jan 27, 2023
2 parents 6f4e7ff + a268a7a commit 741c267
Show file tree
Hide file tree
Showing 16 changed files with 1,387 additions and 124 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/cypress-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ jobs:
cypress_local:
name: Cypress - Local
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
testGroup: ['@slow', '-@slow']

steps:
- name: Checkout
Expand Down Expand Up @@ -51,7 +55,7 @@ jobs:
run: npm run cypress:setup

- name: Test
run: npm run cypress:run
run: npm run cypress:run -- --env grepTags=${{ matrix.testGroup }}

- name: Make artifacts available
uses: actions/upload-artifact@v3
Expand All @@ -71,6 +75,10 @@ jobs:
cypress_epio:
name: Cypress - EP.io
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
testGroup: ['@slow', '-@slow']

steps:
- name: Checkout
Expand Down Expand Up @@ -104,7 +112,7 @@ jobs:
run: npm run cypress:setup -- --ep-host=${{ secrets.EPIO_HOST }} --es-shield='${{ secrets.EPIO_SHIELD }}' --ep-index-prefix=${{ secrets.EPIO_INDEX_PREFIX }}

- name: Test
run: npm run cypress:run
run: npm run cypress:run -- --env grepTags=${{ matrix.testGroup }}

- name: Make artifacts available
uses: actions/upload-artifact@v3
Expand Down
3 changes: 3 additions & 0 deletions bin/setup-cypress-env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@ if [ -z $EP_HOST ]; then
if [ "$(uname | tr '[:upper:]' '[:lower:]')" = "darwin" ]; then
echo "Running tests on $(uname)"
EP_HOST="http://host.docker.internal:8890/"
elif grep -qi microsoft /proc/version; then
echo "Running tests on Windows"
EP_HOST="http://host.docker.internal:8890/"
else
echo "Running tests on $(uname)"
# 172.17.0.1 is the IP Address of host when using Linux
Expand Down
Loading

0 comments on commit 741c267

Please sign in to comment.