Skip to content
This repository was archived by the owner on Jan 28, 2026. It is now read-only.

Commit fdcbbfa

Browse files
committed
release test
1 parent 18b5eb6 commit fdcbbfa

1 file changed

Lines changed: 26 additions & 23 deletions

File tree

.github/workflows/releasetest.yaml

Lines changed: 26 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,36 @@
1+
# ───────────────────────────────────────────────────────────────
2+
# Split-Module GUI Test Pipeline
3+
# ───────────────────────────────────────────────────────────────
14
name: Split-Module GUI Test Pipeline
25

36
on:
47
pull_request:
5-
branches: [main] # adjust to your default branch
8+
branches: [main] # adjust if your default branch differs
69

710
jobs:
811
# ───────────────────────────────────────────────────────────────
9-
# 1. Playwright tests only (Action builds artifacts, no Pages)
12+
# 1. Playwright tests (action packages artifacts, no Pages deploy)
1013
# ───────────────────────────────────────────────────────────────
1114
test:
1215
runs-on: ubuntu-latest
1316
steps:
1417
- uses: actions/checkout@v4
15-
1618
- uses: actions/setup-node@v4
17-
with:
18-
cache: npm
19+
with: { cache: npm }
1920
- run: npm install
2021

21-
- name: GUI Test – Playwright only (with artifacts)
22+
- name: GUI Test – Playwright only
2223
uses: DigitalProductInnovationAndDevelopment/Code-Reviews-of-GUI-Tests@v1.0.9
2324
with:
2425
github-token: ${{ secrets.GITHUB_TOKEN }}
25-
mode: full # ← run all parts, but…
26-
enable-lint: 'false' # ← …skip lint
27-
enable-dashboard: 'true' # package artifacts
28-
enable-github-pages: 'false'
29-
test-files: 'tests/**/*.spec.{js,ts}'
3026

27+
# Run Playwright + package dashboard artifacts in one go
28+
mode: full # run all modules
29+
enable-lint: 'false' # but skip lint
30+
enable-github-pages: 'false' # don't deploy in this job
31+
enable-pr-comments: 'false' # avoid fork permission errors
32+
33+
test-files: 'tests/**/*.spec.*' # ← Playwright-safe glob
3134

3235
# ───────────────────────────────────────────────────────────────
3336
# 2. ESLint / Prettier only
@@ -36,23 +39,22 @@ jobs:
3639
runs-on: ubuntu-latest
3740
steps:
3841
- uses: actions/checkout@v4
39-
4042
- uses: actions/setup-node@v4
41-
with:
42-
cache: npm
43+
with: { cache: npm }
4344
- run: npm install
4445

4546
- name: GUI Test – Lint only
4647
uses: DigitalProductInnovationAndDevelopment/Code-Reviews-of-GUI-Tests@v1.0.9
4748
with:
4849
github-token: ${{ secrets.GITHUB_TOKEN }}
4950
mode: lint-only
51+
enable-pr-comments: 'false'
5052

5153
# ───────────────────────────────────────────────────────────────
5254
# 3. Build dashboard from artifacts produced in `test`
5355
# ───────────────────────────────────────────────────────────────
5456
dashboard:
55-
needs: [test, lint] # wait for both jobs
57+
needs: [test, lint]
5658
runs-on: ubuntu-latest
5759

5860
permissions: # required for PR comment & Pages deploy
@@ -61,26 +63,27 @@ jobs:
6163
pages: write
6264
id-token: write
6365

64-
environment: # gives the nice green “github-pages / deployment” check
65-
name: github-pages
66+
environment:
67+
name: github-pages # gives the green “github-pages / deployment” check
6668
url: ${{ steps.review.outputs.dashboard-url }}
6769

6870
steps:
6971
- uses: actions/checkout@v4
7072

71-
# ⬇️ Download the single artifact package created by the test job
73+
# ⬇️ Download single artifact package created in the test job
7274
- name: Download GUI artifacts
7375
uses: actions/download-artifact@v4
7476
with:
7577
name: gui-test-visual-artifacts
76-
path: artifacts # will be artifacts/web-report/, artifacts/pr-report/, etc.
78+
path: dl # <-- different from 'artifacts' to avoid cp same-file issue
7779

78-
# ⬇️ Build the dashboard (and deploy to Pages)
80+
# ⬇️ Generate & deploy dashboard
7981
- name: Dashboard / PR comment
8082
id: review
8183
uses: DigitalProductInnovationAndDevelopment/Code-Reviews-of-GUI-Tests@v1.0.9
8284
with:
8385
github-token: ${{ secrets.GITHUB_TOKEN }}
84-
mode: dashboard-only
85-
custom-artifacts-path: artifacts
86-
enable-github-pages: 'true' # set to 'false' to skip deployment
86+
mode: dashboard-only # just build dashboard
87+
custom-artifacts-path: dl # folder we downloaded to
88+
enable-github-pages: 'true' # set 'false' to skip deployment
89+
enable-pr-comments: 'false' # still disabled for forks

0 commit comments

Comments
 (0)