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

Commit f50dffe

Browse files
committed
release test
1 parent 8245b6e commit f50dffe

1 file changed

Lines changed: 12 additions & 13 deletions

File tree

.github/workflows/releasetest.yaml

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -18,18 +18,17 @@ jobs:
1818
with: { cache: npm }
1919
- run: npm install
2020

21-
# ── run Playwright (tests only) ───────────────────────────────────────────
21+
# ── run Playwright tests only ─────────────────────────────────────────────
2222
- name: GUI Test – Playwright only
2323
uses: DigitalProductInnovationAndDevelopment/Code-Reviews-of-GUI-Tests@v1.0.9
2424
with:
2525
github-token: ${{ secrets.GITHUB_TOKEN }}
2626
mode: test-only
27-
test-files: 'tests/.*\\.spec\\.(js|ts)$' # ← safe regex
28-
enable-github-pages: 'false' # don’t deploy here
29-
enable-dashboard: 'false' # don’t package dashboard
30-
# (we’ll do that in job 3)
27+
test-files: tests # ← directory, not regex
28+
enable-github-pages: 'false'
29+
enable-dashboard: 'false'
3130

32-
# ── build playwright-summary.json (needed for dashboard) ─────────────────
31+
# ── Build playwright-summary.json & copy metrics ─────────────────────────
3332
- name: Build Playwright summary
3433
run: |
3534
node - <<'EOF'
@@ -48,7 +47,7 @@ jobs:
4847
fs.copyFileSync('playwright-metrics.json', 'artifacts/playwright-metrics.json');
4948
EOF
5049
51-
# ── upload three small artifacts ─────────────────────────────────────────
50+
# ── Upload artifacts used by dashboard job ───────────────────────────────
5251
- uses: actions/upload-artifact@v4
5352
with:
5453
name: playwright-summary
@@ -102,16 +101,16 @@ jobs:
102101
steps:
103102
- uses: actions/checkout@v4
104103

105-
# ── lightweight npm install (only when package.json exists) ──────────────
104+
# ── Install npm dependencies only when package.json exists──────────────
106105
- name: Install npm if needed
107106
run: |
108-
if [ -f package-lock.json ] || [ -f package.json ]; then
107+
if [ -f package.json ]; then
109108
npm ci 2>/dev/null || npm install
110109
else
111110
echo "🛈 No package.json – skipping npm install"
112111
fi
113112
114-
# ── download the three artifacts produced in job 1 ───────────────────────
113+
# ── download the three artifacts created in job 1 ───────────────────────
115114
- uses: actions/download-artifact@v4
116115
with: { name: playwright-summary, path: dl }
117116

@@ -121,12 +120,12 @@ jobs:
121120
- uses: actions/download-artifact@v4
122121
with: { name: playwright-report, path: dl/pr-report }
123122

124-
# ── run the action in dashboard-only mode (generates & deploys) ──────────
125-
- name: Dashboard / PR comment
123+
# ── Generate & deploy dashboard (no re-upload) ───────────────────────────
124+
- name: Dashboard / PR comment / Pages
126125
id: review
127126
uses: DigitalProductInnovationAndDevelopment/Code-Reviews-of-GUI-Tests@v1.0.9
128127
with:
129128
github-token: ${{ secrets.GITHUB_TOKEN }}
130129
mode: dashboard-only
131130
custom-artifacts-path: dl
132-
enable-github-pages: 'true' # set to 'false' to skip deployment
131+
enable-github-pages: 'true'

0 commit comments

Comments
 (0)