File tree Expand file tree Collapse file tree 2 files changed +10
-8
lines changed
Expand file tree Collapse file tree 2 files changed +10
-8
lines changed Original file line number Diff line number Diff line change @@ -9,15 +9,16 @@ permissions:
99
1010jobs :
1111 playwright-showcases :
12- name : 🧪🎭 - ${{ matrix.framework }}:${{ matrix.shard }}
12+ name : 🧪🎭 - ${{ matrix.framework }}:${{ matrix.shardIndex }}/${{ matrix.shardTotal }}
1313 runs-on : ubuntu-latest
1414 container :
1515 image : mcr.microsoft.com/playwright:v1.41.0
1616 strategy :
1717 fail-fast : false
1818 matrix :
1919 framework : [angular, react, vue]
20- shard : [1/2, 2/2]
20+ shardIndex : [1, 2]
21+ shardTotal : [2]
2122 steps :
2223 - name : ⏬ Checkout repo
2324 uses : actions/checkout@v4
5556 - name : 👩🔬 Test showcase with Playwright 🎭
5657 env :
5758 HOME : /root
58- run : npm run test:${{ matrix.framework }}-showcase -- -- --shard=${{ matrix.shard }}
59+ run : npm run test:${{ matrix.framework }}-showcase -- -- --shard=${{ matrix.shardIndex }}/${{ matrix.shardTotal }}
5960
6061 - name : 🔣 Print GitHub Report
6162 if : failure()
6768 if : failure()
6869 uses : actions/upload-artifact@v4
6970 with :
70- name : ${{ matrix.framework }}-showcase-playwright-results-${{ matrix.shard }}
71+ name : ${{ matrix.framework }}-showcase-playwright-results-${{ matrix.shardIndex }}
7172 path : ./showcases/${{ matrix.framework }}-showcase/test-results
7273 retention-days : 30
Original file line number Diff line number Diff line change @@ -9,15 +9,16 @@ permissions:
99
1010jobs :
1111 playwright-ct :
12- name : 🧪🎭 - ${{ matrix.framework }}:${{ matrix.shard }}
12+ name : 🧪🎭 - ${{ matrix.framework }}:${{ matrix.shardIndex }}/${{ matrix.shardTotal }}
1313 runs-on : ubuntu-latest
1414 container :
1515 image : mcr.microsoft.com/playwright:v1.41.0
1616 strategy :
1717 fail-fast : false
1818 matrix :
1919 framework : [react, vue]
20- shard : [1/3, 2/3, 3/3]
20+ shardIndex : [1, 2, 3]
21+ shardTotal : [3]
2122 steps :
2223 - name : ⏬ Checkout repo
2324 uses : actions/checkout@v4
6061 working-directory : ./output/${{ steps.workingDirectory.outputs.dir }}
6162 env :
6263 HOME : /root
63- run : npx playwright test --shard=${{ matrix.shard }}
64+ run : npx playwright test --shard=${{ matrix.shardIndex }}/${{ matrix.shardTotal }}
6465
6566 - name : 🔣 Print GitHub Report
6667 if : failure()
7374 if : failure()
7475 uses : actions/upload-artifact@v4
7576 with :
76- name : ${{ matrix.framework }}-components-playwright-results-${{ matrix.shard }}
77+ name : ${{ matrix.framework }}-components-playwright-results-${{ matrix.shardIndex }}
7778 path : ./output/${{ steps.workingDirectory.outputs.dir }}/test-results
7879 retention-days : 30
You can’t perform that action at this time.
0 commit comments