This repository was archived by the owner on Jan 28, 2026. It is now read-only.
release test #13
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # ─────────────────────────────────────────────────────────────── | |
| # Split-Module GUI Test Pipeline | |
| # ─────────────────────────────────────────────────────────────── | |
| name: Split-Module GUI Test Pipeline | |
| on: | |
| pull_request: | |
| branches: [main] # adjust if your default branch differs | |
| jobs: | |
| # ─────────────────────────────────────────────────────────────── | |
| # 1. Playwright tests (action packages artifacts, no Pages deploy) | |
| # ─────────────────────────────────────────────────────────────── | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: { cache: npm } | |
| - run: npm install | |
| - name: GUI Test – Playwright only | |
| uses: DigitalProductInnovationAndDevelopment/Code-Reviews-of-GUI-Tests@v1.0.9 | |
| with: | |
| github-token: ${{ secrets.GITHUB_TOKEN }} | |
| # Run Playwright + package dashboard artifacts in one go | |
| mode: full # run all modules | |
| enable-lint: 'false' # but skip lint | |
| enable-github-pages: 'false' # don't deploy in this job | |
| enable-pr-comments: 'false' # avoid fork permission errors | |
| test-files: 'tests/**/*.spec.*' # ← Playwright-safe glob | |
| # ─────────────────────────────────────────────────────────────── | |
| # 2. ESLint / Prettier only | |
| # ─────────────────────────────────────────────────────────────── | |
| lint: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: { cache: npm } | |
| - run: npm install | |
| - name: GUI Test – Lint only | |
| uses: DigitalProductInnovationAndDevelopment/Code-Reviews-of-GUI-Tests@v1.0.9 | |
| with: | |
| github-token: ${{ secrets.GITHUB_TOKEN }} | |
| mode: lint-only | |
| enable-pr-comments: 'false' | |
| # ─────────────────────────────────────────────────────────────── | |
| # 3. Build dashboard from artifacts produced in `test` | |
| # ─────────────────────────────────────────────────────────────── | |
| dashboard: | |
| needs: [test, lint] | |
| runs-on: ubuntu-latest | |
| permissions: # required for PR comment & Pages deploy | |
| contents: read | |
| pull-requests: write | |
| pages: write | |
| id-token: write | |
| environment: | |
| name: github-pages # gives the green “github-pages / deployment” check | |
| url: ${{ steps.review.outputs.dashboard-url }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| # ⬇️ Download single artifact package created in the test job | |
| - name: Download GUI artifacts | |
| uses: actions/download-artifact@v4 | |
| with: | |
| name: gui-test-visual-artifacts | |
| path: dl # <-- different from 'artifacts' to avoid cp same-file issue | |
| # ⬇️ Generate & deploy dashboard | |
| - name: Dashboard / PR comment | |
| id: review | |
| uses: DigitalProductInnovationAndDevelopment/Code-Reviews-of-GUI-Tests@v1.0.9 | |
| with: | |
| github-token: ${{ secrets.GITHUB_TOKEN }} | |
| mode: dashboard-only # just build dashboard | |
| custom-artifacts-path: dl # folder we downloaded to | |
| enable-github-pages: 'true' # set 'false' to skip deployment | |
| enable-pr-comments: 'false' # still disabled for forks |