Skip to content

Commit

Permalink
add playwright install checks
Browse files Browse the repository at this point in the history
  • Loading branch information
IldarKamalov committed Feb 3, 2025
1 parent f645ff3 commit f218cbc
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f218cbc

Please sign in to comment.