Skip to content

Commit

Permalink
test: CI workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
RexBearIU committed Feb 29, 2024
1 parent 564af31 commit d9817f5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/playwright.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ jobs:
run: npx playwright test tests/${{ matrix.tests-name}}.spec.ts
env:
BASE_URL: ${{ github.event.deployment_status.environment_url }}
TEST_NAME: ${{ matrix.tests-name}}
- name: Upload blob report to GitHub Actions Artifacts
if: always()
uses: actions/upload-artifact@v4
Expand Down Expand Up @@ -66,7 +67,7 @@ jobs:
- name: Upload HTML report
uses: actions/upload-artifact@v4
with:
name: playwright-report-${{ github.run_id}}
name: playwright-report-${{github.run_id}}
path: ./playwright-report
retention-days: 14

2 changes: 1 addition & 1 deletion integration-test/playwright.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export default defineConfig({
// Limit the number of failures on CI to save resources
maxFailures: process.env.CI ? 25 : undefined,
/* Reporter to use. See https://playwright.dev/docs/test-reporters */
reporter: process.env.CI ? 'blob' : 'html',
reporter: process.env.CI ? [['blob', {fileName: `report-${process.env.TEST_NAME}.zip`}]] : 'html',
/* Shared settings for all the projects below. See https://playwright.dev/docs/api/class-testoptions. */
use: {
timezoneId: 'Asia/Taipei',
Expand Down

0 comments on commit d9817f5

Please sign in to comment.