diff --git a/.github/workflows/pull-e2e-tests.yml b/.github/workflows/pull-e2e-tests.yml index 2c850cbdf6..3bedad29a8 100644 --- a/.github/workflows/pull-e2e-tests.yml +++ b/.github/workflows/pull-e2e-tests.yml @@ -51,5 +51,6 @@ jobs: INSTALL_LOCK = true EOF - run: ./gitea web & + - run: make playwright - run: E2E_URL=http://localhost:3000 make test-e2e timeout-minutes: 10 diff --git a/Makefile b/Makefile index a01e00f090..cf61bc89a2 100644 --- a/Makefile +++ b/Makefile @@ -553,9 +553,12 @@ test-mssql\#%: integrations.mssql.test generate-ini-mssql .PHONY: test-mssql-migration test-mssql-migration: migrations.mssql.test migrations.individual.mssql.test -.PHONY: test-e2e -test-e2e: deps-frontend +.PHONY: playwright +playwright: deps-frontend @$(NODE_VARS) pnpm exec playwright install --with-deps chromium $(PLAYWRIGHT_FLAGS) + +.PHONY: test-e2e +test-e2e: playwright EXECUTABLE=$(EXECUTABLE) ./tools/test-e2e.sh $(E2E_FLAGS) .PHONY: bench-sqlite