Skip to content

Commit

Permalink
Merge pull request #3041 from responsible-ai-collaborative/staging
Browse files Browse the repository at this point in the history
Deploy to Production
  • Loading branch information
kepae committed Sep 4, 2024
2 parents 2691977 + 64e1275 commit 8262d88
Show file tree
Hide file tree
Showing 89 changed files with 10,321 additions and 8,720 deletions.
22 changes: 17 additions & 5 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, 7, 8]
shardTotal: [8]
steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down Expand Up @@ -115,20 +115,32 @@ 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/

- name: Upload Playwright traces
if: failure()
uses: actions/upload-artifact@v4
with:
name: playwright-traces-${{ matrix.shardIndex }}
path: site/gatsby-site/test-results/**/*.zip
retention-days: 7

- uses: actions/upload-artifact@v4
if: ${{ !cancelled() }}
with:
name: blob-report-full-${{ matrix.shardIndex }}
path: site/gatsby-site/blob-report/
retention-days: 1
retention-days: 7

merge-reports:
# Merge reports after playwright-tests, even if some shards have failed
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 8262d88

Please sign in to comment.