mirror of
https://github.com/Pacerino/CaddyProxyManager.git
synced 2026-07-30 09:22:34 -04:00
[CI] Enable CGO for backend tests
go test -race (and the sqlite driver) require CGO; set CGO_ENABLED=1 on the test-backend job.
This commit is contained in:
3
.github/workflows/ci.yml
vendored
3
.github/workflows/ci.yml
vendored
@@ -24,6 +24,9 @@ jobs:
|
||||
test-backend:
|
||||
name: Test backend
|
||||
runs-on: self-hosted
|
||||
# CGO is required by the sqlite driver and by `go test -race`.
|
||||
env:
|
||||
CGO_ENABLED: "1"
|
||||
defaults:
|
||||
run:
|
||||
working-directory: backend
|
||||
|
||||
Reference in New Issue
Block a user