Просмотр исходного кода

fix workflow to report playwright

Yuki Takei 1 год назад
Родитель
Сommit
d2883d1199
1 измененных файлов с 24 добавлено и 18 удалено
  1. 24 18
      .github/workflows/reusable-app-prod.yml

+ 24 - 18
.github/workflows/reusable-app-prod.yml

@@ -268,32 +268,38 @@ jobs:
         path: blob-report
         retention-days: 30
 
-    - name: Download blob reports from all shards
-      if: always()
-      uses: actions/download-artifact@v4
+    - name: Slack Notification
+      uses: weseek/ghaction-slack-notification@master
+      if: failure()
+      with:
+        type: ${{ job.status }}
+        job_name: '*Node CI for growi - run-playwright*'
+        channel: '#ci'
+        isCompactMode: true
+        url: ${{ secrets.SLACK_WEBHOOK_URL }}
+
+
+  report-playwright:
+    needs: [run-playwright]
+
+    runs-on: ubuntu-latest
+
+    steps:
+    - uses: actions/checkout@v4
+
+    - uses: pnpm/action-setup@v4
+
+    - uses: actions/setup-node@v4
       with:
-        pattern: blob-report-*
-        path: all-blob-reports
-        merge-multiple: true
+        node-version: ${{ inputs.node-version }}
+        cache: 'pnpm'
 
     - name: Merge into HTML Report
-      if: always()
       run: pnpm playwright merge-reports --reporter html ./all-blob-reports
 
     - name: Upload HTML report
-      if: always()
       uses: actions/upload-artifact@v4
       with:
         name: html-report
         path: playwright-report
         retention-days: 30
-
-    - name: Slack Notification
-      uses: weseek/ghaction-slack-notification@master
-      if: failure()
-      with:
-        type: ${{ job.status }}
-        job_name: '*Node CI for growi - run-playwright*'
-        channel: '#ci'
-        isCompactMode: true
-        url: ${{ secrets.SLACK_WEBHOOK_URL }}