refactor(ci-pipeline): rename Playwright job to build and streamline CI steps

- Consolidated Playwright job into a build job for clarity.
- Removed Playwright browser installation and test execution steps to simplify the workflow.
This commit is contained in:
taroj1205
2025-05-16 11:41:40 +12:00
parent ad9f27b220
commit 5d6508a306

View File

@@ -59,7 +59,7 @@ jobs:
- name: Run Vitest tests
run: npx vitest run
playwright:
build:
runs-on: ubuntu-latest
needs: setup
steps:
@@ -73,15 +73,5 @@ jobs:
path: |
node_modules
key: ${{ runner.os }}-node-${{ hashFiles('package-lock.json') }}
- name: Install Playwright Browsers
run: npx playwright install --with-deps
- name: Build project
run: npm run build
- name: Run Playwright tests
run: npx playwright test
- uses: actions/upload-artifact@v4
if: ${{ !cancelled() }}
with:
name: playwright-report
path: playwright-report/
retention-days: 30
run: npm run build