Skip to content

Commit

Permalink
Merge branch 'main' into feat-color-palette
Browse files Browse the repository at this point in the history
  • Loading branch information
nmerget authored Jan 31, 2024
2 parents fb932ab + adcde31 commit 9588703
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/02-e2e-showcases.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,16 @@ permissions:

jobs:
playwright-showcases:
name: 🧪🎭 - ${{ matrix.framework }}:${{ matrix.shard }}
name: 🧪🎭 - ${{ matrix.framework }}:${{ matrix.shardIndex }}/${{ matrix.shardTotal }}
runs-on: ubuntu-latest
container:
image: mcr.microsoft.com/playwright:v1.41.0
strategy:
fail-fast: false
matrix:
framework: [angular, react, vue]
shard: [1/2, 2/2]
shardIndex: [1, 2]
shardTotal: [2]
steps:
- name: ⏬ Checkout repo
uses: actions/checkout@v4
Expand Down Expand Up @@ -55,7 +56,7 @@ jobs:
- name: 👩‍🔬 Test showcase with Playwright 🎭
env:
HOME: /root
run: npm run test:${{ matrix.framework }}-showcase -- -- --shard=${{ matrix.shard }}
run: npm run test:${{ matrix.framework }}-showcase -- -- --shard=${{ matrix.shardIndex }}/${{ matrix.shardTotal }}

- name: 🔣 Print GitHub Report
if: failure()
Expand All @@ -67,6 +68,6 @@ jobs:
if: failure()
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.framework }}-showcase-playwright-results-${{ matrix.shard }}
name: ${{ matrix.framework }}-showcase-playwright-results-${{ matrix.shardIndex }}
path: ./showcases/${{ matrix.framework }}-showcase/test-results
retention-days: 30
9 changes: 5 additions & 4 deletions .github/workflows/02-e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,16 @@ permissions:

jobs:
playwright-ct:
name: 🧪🎭 - ${{ matrix.framework }}:${{ matrix.shard }}
name: 🧪🎭 - ${{ matrix.framework }}:${{ matrix.shardIndex }}/${{ matrix.shardTotal }}
runs-on: ubuntu-latest
container:
image: mcr.microsoft.com/playwright:v1.41.0
strategy:
fail-fast: false
matrix:
framework: [react, vue]
shard: [1/3, 2/3, 3/3]
shardIndex: [1, 2, 3]
shardTotal: [3]
steps:
- name: ⏬ Checkout repo
uses: actions/checkout@v4
Expand Down Expand Up @@ -60,7 +61,7 @@ jobs:
working-directory: ./output/${{ steps.workingDirectory.outputs.dir }}
env:
HOME: /root
run: npx playwright test --shard=${{ matrix.shard }}
run: npx playwright test --shard=${{ matrix.shardIndex }}/${{ matrix.shardTotal }}

- name: 🔣 Print GitHub Report
if: failure()
Expand All @@ -73,6 +74,6 @@ jobs:
if: failure()
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.framework }}-components-playwright-results-${{ matrix.shard }}
name: ${{ matrix.framework }}-components-playwright-results-${{ matrix.shardIndex }}
path: ./output/${{ steps.workingDirectory.outputs.dir }}/test-results
retention-days: 30

0 comments on commit 9588703

Please sign in to comment.