chore: Update Playwright test configuration for CI
This commit is contained in:
parent
aaff06316e
commit
b0a4ae25dc
1 changed files with 11 additions and 14 deletions
25
.github/workflows/typescript_test.yml
vendored
25
.github/workflows/typescript_test.yml
vendored
|
|
@ -8,7 +8,6 @@ on:
|
||||||
required: true
|
required: true
|
||||||
type: string
|
type: string
|
||||||
|
|
||||||
|
|
||||||
env:
|
env:
|
||||||
POETRY_VERSION: "1.8.2"
|
POETRY_VERSION: "1.8.2"
|
||||||
NODE_VERSION: "21"
|
NODE_VERSION: "21"
|
||||||
|
|
@ -95,28 +94,27 @@ jobs:
|
||||||
- name: Run Playwright Tests
|
- name: Run Playwright Tests
|
||||||
run: |
|
run: |
|
||||||
cd src/frontend
|
cd src/frontend
|
||||||
npx playwright test --trace on --shard ${{ matrix.shardIndex }}/${{ matrix.shardTotal }} --workers 2
|
npx playwright test --shard=${{ matrix.shardIndex }}/${{ matrix.shardTotal }}
|
||||||
|
|
||||||
- name: Upload blob report to GitHub Actions Artifacts
|
- name: Upload blob report to GitHub Actions Artifacts
|
||||||
if: always()
|
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: blob-report-${{ matrix.shardIndex }}
|
name: blob-report-${{ matrix.shardIndex }}
|
||||||
path: src/frontend/blob-report
|
path: blob-report
|
||||||
retention-days: 1
|
retention-days: 1
|
||||||
|
|
||||||
merge-reports:
|
merge-reports:
|
||||||
needs: setup-and-test
|
if: ${{ !cancelled() }}
|
||||||
runs-on: ubuntu-latest
|
needs: [setup-and-test]
|
||||||
if: always()
|
|
||||||
steps:
|
|
||||||
- name: Checkout code
|
|
||||||
uses: actions/checkout@v4
|
|
||||||
|
|
||||||
- name: Setup Node.js
|
runs-on: ubuntu-latest
|
||||||
uses: actions/setup-node@v4
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
- uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
node-version: ${{ env.NODE_VERSION }}
|
node-version: ${{ env.NODE_VERSION }}
|
||||||
|
- name: Install dependencies
|
||||||
|
run: npm ci
|
||||||
|
|
||||||
- name: Download blob reports from GitHub Actions Artifacts
|
- name: Download blob reports from GitHub Actions Artifacts
|
||||||
uses: actions/download-artifact@v4
|
uses: actions/download-artifact@v4
|
||||||
|
|
@ -126,8 +124,7 @@ jobs:
|
||||||
merge-multiple: true
|
merge-multiple: true
|
||||||
|
|
||||||
- name: Merge into HTML Report
|
- name: Merge into HTML Report
|
||||||
run: |
|
run: npx playwright merge-reports --reporter html ./all-blob-reports
|
||||||
npx playwright merge-reports --reporter html ./all-blob-reports
|
|
||||||
|
|
||||||
- name: Upload HTML report
|
- name: Upload HTML report
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue