Browse Source

chore: enable e2e dump

Junyi Du 3 years ago
parent
commit
7efa4d8da6
2 changed files with 18 additions and 8 deletions
  1. 11 2
      .github/workflows/build.yml
  2. 7 6
      .github/workflows/e2e.yml

+ 11 - 2
.github/workflows/build.yml

@@ -181,6 +181,14 @@ jobs:
           DEBUG: "pw:api"
           RELEASE: true # skip dev only test
 
+      - name: Save test artifacts - 1/2
+        if: ${{ failure() }}
+        uses: actions/upload-artifact@v3
+        with:
+          name: e2e-test-report-1-of-2
+          path: e2e-dump/*
+          retention-days: 1
+
       - name: Run Playwright test - 2/2
         run: xvfb-run -- npx playwright test --reporter github --shard=2/2
         env:
@@ -188,9 +196,10 @@ jobs:
           DEBUG: "pw:api"
           RELEASE: true # skip dev only test
 
-      - name: Save test artifacts
+      - name: Save test artifacts - 2/2
         if: ${{ failure() }}
         uses: actions/upload-artifact@v3
         with:
-          name: e2e-test-report
+          name: e2e-test-report-2-of-2
           path: e2e-dump/*
+          retention-days: 1

+ 7 - 6
.github/workflows/e2e.yml

@@ -146,9 +146,10 @@ jobs:
           DEBUG: "pw:api"
           RELEASE: true # skip dev only test
 
-      # - name: Save test artifacts
-      #   if: ${{ failure() }}
-      #   uses: actions/upload-artifact@v2
-      #   with:
-      #     name: e2e-test-report
-      #     path: artifacts.zip
+      - name: Save e2e artifacts
+        if: ${{ failure() }}
+        uses: actions/upload-artifact@v3
+        with:
+          name: e2e-repeat-report-${{ matrix.shard}}-${{ matrix.repeat }}
+          path: e2e-dump/*
+          retention-days: 1