|
@@ -225,6 +225,7 @@ jobs:
|
|
|
run: |
|
|
run: |
|
|
|
pnpm playwright test --project=chromium/installer
|
|
pnpm playwright test --project=chromium/installer
|
|
|
env:
|
|
env:
|
|
|
|
|
+ DEBUG: pw:api
|
|
|
HOME: /root # ref: https://github.com/microsoft/playwright/issues/6500
|
|
HOME: /root # ref: https://github.com/microsoft/playwright/issues/6500
|
|
|
MONGO_URI: mongodb://mongodb:27017/growi-playwright-installer
|
|
MONGO_URI: mongodb://mongodb:27017/growi-playwright-installer
|
|
|
ELASTICSEARCH_URI: http://localhost:${{ job.services.elasticsearch.ports['9200'] }}/growi
|
|
ELASTICSEARCH_URI: http://localhost:${{ job.services.elasticsearch.ports['9200'] }}/growi
|
|
@@ -239,6 +240,7 @@ jobs:
|
|
|
run: |
|
|
run: |
|
|
|
pnpm playwright test --project=${{ matrix.browser }} --shard=${{ matrix.shard }}
|
|
pnpm playwright test --project=${{ matrix.browser }} --shard=${{ matrix.shard }}
|
|
|
env:
|
|
env:
|
|
|
|
|
+ DEBUG: pw:api
|
|
|
HOME: /root # ref: https://github.com/microsoft/playwright/issues/6500
|
|
HOME: /root # ref: https://github.com/microsoft/playwright/issues/6500
|
|
|
MONGO_URI: mongodb://mongodb:27017/growi-playwright
|
|
MONGO_URI: mongodb://mongodb:27017/growi-playwright
|
|
|
ELASTICSEARCH_URI: http://localhost:${{ job.services.elasticsearch.ports['9200'] }}/growi
|
|
ELASTICSEARCH_URI: http://localhost:${{ job.services.elasticsearch.ports['9200'] }}/growi
|
|
@@ -253,10 +255,19 @@ jobs:
|
|
|
run: |
|
|
run: |
|
|
|
pnpm playwright test --project=${{ matrix.browser }}/guest-mode --shard=${{ matrix.shard }}
|
|
pnpm playwright test --project=${{ matrix.browser }}/guest-mode --shard=${{ matrix.shard }}
|
|
|
env:
|
|
env:
|
|
|
|
|
+ DEBUG: pw:api
|
|
|
HOME: /root # ref: https://github.com/microsoft/playwright/issues/6500
|
|
HOME: /root # ref: https://github.com/microsoft/playwright/issues/6500
|
|
|
MONGO_URI: mongodb://mongodb:27017/growi-playwright-guest-mode
|
|
MONGO_URI: mongodb://mongodb:27017/growi-playwright-guest-mode
|
|
|
ELASTICSEARCH_URI: http://localhost:${{ job.services.elasticsearch.ports['9200'] }}/growi
|
|
ELASTICSEARCH_URI: http://localhost:${{ job.services.elasticsearch.ports['9200'] }}/growi
|
|
|
|
|
|
|
|
|
|
+ - name: Upload test results
|
|
|
|
|
+ if: always()
|
|
|
|
|
+ uses: actions/upload-artifact@v4
|
|
|
|
|
+ with:
|
|
|
|
|
+ name: blob-report-${{ matrix.shard }}
|
|
|
|
|
+ path: blob-report
|
|
|
|
|
+ retention-days: 30
|
|
|
|
|
+
|
|
|
- name: Slack Notification
|
|
- name: Slack Notification
|
|
|
uses: weseek/ghaction-slack-notification@master
|
|
uses: weseek/ghaction-slack-notification@master
|
|
|
if: failure()
|
|
if: failure()
|
|
@@ -266,3 +277,29 @@ jobs:
|
|
|
channel: '#ci'
|
|
channel: '#ci'
|
|
|
isCompactMode: true
|
|
isCompactMode: true
|
|
|
url: ${{ secrets.SLACK_WEBHOOK_URL }}
|
|
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:
|
|
|
|
|
+ node-version: ${{ inputs.node-version }}
|
|
|
|
|
+ cache: 'pnpm'
|
|
|
|
|
+
|
|
|
|
|
+ - name: Merge into HTML Report
|
|
|
|
|
+ run: pnpm playwright merge-reports --reporter html ./all-blob-reports
|
|
|
|
|
+
|
|
|
|
|
+ - name: Upload HTML report
|
|
|
|
|
+ uses: actions/upload-artifact@v4
|
|
|
|
|
+ with:
|
|
|
|
|
+ name: html-report
|
|
|
|
|
+ path: playwright-report
|
|
|
|
|
+ retention-days: 30
|