forked from baron/baron-sso
build: collect playwright artifacts in reports and refresh flutter lock
This commit is contained in:
24
Makefile
24
Makefile
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user