Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/staging' into fix-outdated-tests
Browse files Browse the repository at this point in the history
  • Loading branch information
cesarvarela committed Aug 28, 2024
2 parents e2a1be0 + d5eba4f commit 1b35832
Show file tree
Hide file tree
Showing 31 changed files with 3,681 additions and 639 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/test-playwright-full.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,13 @@ jobs:
tests:
name: Run Playwright tests
environment: ${{ inputs.environment }}
timeout-minutes: 60
timeout-minutes: 30
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
shardIndex: [1, 2, 3, 4]
shardTotal: [4]
shardIndex: [1, 2, 3, 4, 5, 6]
shardTotal: [6]
steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down Expand Up @@ -115,13 +115,17 @@ jobs:
working-directory: site/gatsby-site

- name: Run playwright tests
run: npx playwright test playwright/e2e-full/ --shard=${{ matrix.shardIndex }}/${{ matrix.shardTotal }}
run: npm run test:e2e:ci
working-directory: site/gatsby-site
env:
E2E_ADMIN_PASSWORD: ${{ secrets.E2E_ADMIN_PASSWORD }}
E2E_ADMIN_USERNAME: ${{ secrets.E2E_ADMIN_USERNAME }}
IS_EMPTY_ENVIRONMENT: ${{ vars.IS_EMPTY_ENVIRONMENT }}
MONGODB_CONNECTION_STRING: mongodb://127.0.0.1:4110/
GATSBY_AVAILABLE_LANGUAGES: ${{ vars.GATSBY_AVAILABLE_LANGUAGES }}
SHARD_INDEX: ${{ matrix.shardIndex }}
SHARD_TOTAL: ${{ matrix.shardTotal }}
TEST_FOLDER: playwright/e2e-full/

- uses: actions/upload-artifact@v4
if: ${{ !cancelled() }}
Expand Down
11 changes: 7 additions & 4 deletions .github/workflows/test-playwright.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,13 @@ jobs:
tests:
name: Run Playwright tests
environment: ${{ inputs.environment }}
timeout-minutes: 60
timeout-minutes: 30
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
shardIndex: [1, 2, 3, 4]
shardTotal: [4]
shardIndex: [1, 2, 3, 4, 5, 6]
shardTotal: [6]
steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down Expand Up @@ -71,13 +71,16 @@ jobs:
working-directory: site/gatsby-site

- name: Run playwright tests
run: npx playwright test playwright/e2e/ --shard=${{ matrix.shardIndex }}/${{ matrix.shardTotal }}
run: npm run test:e2e:ci
working-directory: site/gatsby-site
env:
E2E_ADMIN_PASSWORD: ${{ secrets.E2E_ADMIN_PASSWORD }}
E2E_ADMIN_USERNAME: ${{ secrets.E2E_ADMIN_USERNAME }}
IS_EMPTY_ENVIRONMENT: ${{ vars.IS_EMPTY_ENVIRONMENT }}
GATSBY_AVAILABLE_LANGUAGES: ${{ vars.GATSBY_AVAILABLE_LANGUAGES }}
SHARD_INDEX: ${{ matrix.shardIndex }}
SHARD_TOTAL: ${{ matrix.shardTotal }}
TEST_FOLDER: playwright/e2e/

- uses: actions/upload-artifact@v4
if: ${{ !cancelled() }}
Expand Down
Loading

0 comments on commit 1b35832

Please sign in to comment.