1
0
forked from baron/baron-sso

build: collect playwright artifacts in reports and refresh flutter lock

This commit is contained in:
Lectom C Han
2026-02-20 10:39:41 +09:00
parent 9f50a6e14a
commit 0509a7dda5
2 changed files with 40 additions and 16 deletions

View File

@@ -159,10 +159,26 @@ code-check-userfront-tests:
code-check-adminfront-tests:
@echo "==> adminfront tests"
cd adminfront && npx playwright install
cd adminfront && npm test
@mkdir -p reports/adminfront
@rm -rf reports/adminfront/playwright-report reports/adminfront/test-results
@status=0; \
(cd adminfront && npx playwright install) || status=$$?; \
if [ $$status -eq 0 ]; then \
(cd adminfront && npm test) || status=$$?; \
fi; \
[ -d adminfront/playwright-report ] && cp -R adminfront/playwright-report reports/adminfront/ || true; \
[ -d adminfront/test-results ] && cp -R adminfront/test-results reports/adminfront/ || true; \
exit $$status
code-check-devfront-tests:
@echo "==> devfront tests"
cd devfront && npx playwright install
cd devfront && npm test
@mkdir -p reports/devfront
@rm -rf reports/devfront/playwright-report reports/devfront/test-results
@status=0; \
(cd devfront && npx playwright install) || status=$$?; \
if [ $$status -eq 0 ]; then \
(cd devfront && npm test) || status=$$?; \
fi; \
[ -d devfront/playwright-report ] && cp -R devfront/playwright-report reports/devfront/ || true; \
[ -d devfront/test-results ] && cp -R devfront/test-results reports/devfront/ || true; \
exit $$status