Shreyas0786 commented on code in PR #275:
URL: 
https://github.com/apache/fineract-backoffice-ui/pull/275#discussion_r3741375304


##########
.github/workflows/e2e.yml:
##########
@@ -80,20 +88,64 @@ jobs:
         run: npx playwright install chromium --with-deps
 
       - name: Run mocked E2E tests
+        env:
+          SHARD_INDEX: ${{ matrix.shard }}
+          SHARD_TOTAL: ${{ matrix.total }}
+          PLAYWRIGHT_OUTPUT_DIR: ${{ runner.temp }}/e2e-output
+        run: npx playwright test --project=mocked 
--shard="$SHARD_INDEX/$SHARD_TOTAL" --reporter=blob
+
+      - name: Upload blob report
+        uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a 
# v7.0.1
+        if: ${{ !cancelled() }}
+        with:
+          name: playwright-blob-mocked-${{ matrix.shard }}
+          path: blob-report/
+          if-no-files-found: warn
+          retention-days: 1
+
+  mocked-report:
+    name: E2E (mocked backend report)
+    if: ${{ !cancelled() }}
+    needs: mocked
+    runs-on: ubuntu-latest
+    permissions:
+      contents: read # checkout
+      pull-requests: write # upsert the merged summary comment
+    steps:
+      - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v4
+        with:
+          persist-credentials: false
+
+      - name: Set up Node.js
+        uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # 
v7.0.0
+        with:
+          node-version: 'lts/*'
+          cache: 'npm'
+
+      - name: Install dependencies
+        run: npm ci
+
+      - name: Download blob reports
+        uses: 
actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
+        with:
+          path: all-blob-reports
+          pattern: playwright-blob-mocked-*
+          merge-multiple: true
+
+      - name: Merge mocked E2E reports
         env:
           PLAYWRIGHT_HTML_OPEN: 'never'
           PLAYWRIGHT_JSON_OUTPUT_NAME: 'playwright-results.json'
-          PLAYWRIGHT_OUTPUT_DIR: ${{ runner.temp }}/e2e-output
-        run: npx playwright test --project=mocked --reporter=line,html,json
+        run: npx playwright merge-reports --reporter=html,json 
./all-blob-reports

Review Comment:
   Updated the merged reporter list to line,html,json, so the job log shows the 
tests executed across the shards.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to