mirror of
https://github.com/go-gitea/gitea.git
synced 2026-05-20 13:44:10 +02: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:
parent
a2d1138d5c
commit
6b5fa8407d
1
.github/workflows/pull-e2e-tests.yml
vendored
1
.github/workflows/pull-e2e-tests.yml
vendored
@ -38,3 +38,4 @@ jobs:
|
|||||||
timeout-minutes: 10
|
timeout-minutes: 10
|
||||||
env:
|
env:
|
||||||
FORCE_COLOR: 1
|
FORCE_COLOR: 1
|
||||||
|
GITEA_TEST_E2E_DEBUG: 1
|
||||||
|
|||||||
2
Makefile
2
Makefile
@ -535,7 +535,7 @@ playwright: deps-frontend
|
|||||||
|
|
||||||
.PHONY: test-e2e
|
.PHONY: test-e2e
|
||||||
test-e2e: playwright
|
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)
|
@EXECUTABLE=gitea-e2e ./tools/test-e2e.sh $(GITEA_TEST_E2E_FLAGS)
|
||||||
|
|
||||||
.PHONY: bench-sqlite
|
.PHONY: bench-sqlite
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user