add playwright install checks

This commit is contained in:
Ildar Kamalov
2025-02-03 14:52:25 +03:00
parent f645ff30bc
commit f218cbccfd

View File

@@ -110,7 +110,17 @@ js-deps: ; $(NPM) $(NPM_INSTALL_FLAGS) ci
js-lint: ; $(NPM) $(NPM_FLAGS) run lint
js-test: ; $(NPM) $(NPM_FLAGS) run test
js-test-e2e: ; $(NPM) $(NPM_FLAGS) run test:e2e
js-deps-e2e: ; npx playwright install
js-deps-e2e:
@npx playwright install --with-deps
@echo "Playwright installation complete"
@npx playwright --version || { echo "ERROR: Playwright installation failed"; exit 1; }
@npx playwright show-browsers || { echo "ERROR: Playwright browsers are missing"; exit 1; }
@ls -l ~/.cache/ms-playwright/ || { echo "ERROR: Playwright browser binaries not found"; exit 1; }
@echo "Playwright setup verified successfully"
go-bench: ; $(ENV) "$(SHELL)" ./scripts/make/go-bench.sh
go-build: ; $(ENV) "$(SHELL)" ./scripts/make/go-build.sh