Skip to content

Commit

Permalink
⬆️ (typescript_test.yml): update matrix configuration to run tests on…
Browse files Browse the repository at this point in the history
… multiple shards for better parallelization

🔧 (typescript_test.yml): enable playwright test execution with shard index and total for parallel test execution
  • Loading branch information
Cristhianzl authored and ogabrielluiz committed Nov 13, 2024
1 parent 78f4fa5 commit b7cf9e8
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/typescript_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,9 @@ jobs:
strategy:
fail-fast: false
matrix:
# shardIndex: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
# shardTotal: [10]
shardIndex: [1]
shardTotal: [1]
shardIndex: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
shardTotal: [10]

env:
OPENAI_API_KEY: ${{ inputs.openai_api_key || secrets.OPENAI_API_KEY }}
STORE_API_KEY: ${{ inputs.store_api_key || secrets.STORE_API_KEY }}
Expand Down Expand Up @@ -121,8 +120,8 @@ jobs:
max_attempts: 2
command: |
cd src/frontend
# npx playwright test ${{ inputs.tests_folder }} --shard ${{ matrix.shardIndex }}/${{ matrix.shardTotal }} --list
# npx playwright test ${{ inputs.tests_folder }} --trace on --shard ${{ matrix.shardIndex }}/${{ matrix.shardTotal }} --workers 2
npx playwright test ${{ inputs.tests_folder }} --shard ${{ matrix.shardIndex }}/${{ matrix.shardTotal }} --list
npx playwright test ${{ inputs.tests_folder }} --trace on --shard ${{ matrix.shardIndex }}/${{ matrix.shardTotal }} --workers 2
- name: Upload blob report to GitHub Actions Artifacts
if: always()
Expand Down

0 comments on commit b7cf9e8

Please sign in to comment.