0
0
mirror of https://github.com/go-gitea/gitea.git synced 2026-02-22 15:25:05 +01:00

Fix CGO_ENABLED for e2e binary build, enable debug on CI

The test-e2e target uses TEST_TAGS (not TAGS) so the Makefile's
automatic CGO_ENABLED=1 detection for sqlite didn't trigger. Set
CGO_ENABLED=1 explicitly in the build command.

Also enable GITEA_TEST_E2E_DEBUG on CI to see server output on failure.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
silverwind 2026-02-20 04:24:04 +01:00
parent a2d1138d5c
commit 6b5fa8407d
No known key found for this signature in database
GPG Key ID: 2E62B41C93869443
2 changed files with 2 additions and 1 deletions

View File

@ -38,3 +38,4 @@ jobs:
timeout-minutes: 10
env:
FORCE_COLOR: 1
GITEA_TEST_E2E_DEBUG: 1

View File

@ -535,7 +535,7 @@ playwright: deps-frontend
.PHONY: test-e2e
test-e2e: playwright
$(GO) build $(GOFLAGS) $(EXTRA_GOFLAGS) -tags '$(TEST_TAGS)' -ldflags '-s -w $(EXTLDFLAGS) $(LDFLAGS)' -o gitea-e2e
CGO_ENABLED=1 $(GO) build $(GOFLAGS) $(EXTRA_GOFLAGS) -tags '$(TEST_TAGS)' -ldflags '-s -w $(EXTLDFLAGS) $(LDFLAGS)' -o gitea-e2e
@EXECUTABLE=gitea-e2e ./tools/test-e2e.sh $(GITEA_TEST_E2E_FLAGS)
.PHONY: bench-sqlite