mirror of
https://github.com/Mezeporta/Erupe.git
synced 2026-03-22 07:32:32 +01:00
ci: serialize test packages to fix shared database race condition
The migrations and channelserver packages both DROP and recreate the public schema on the shared erupe_test database. With parallel package execution, they destroy each other's schema mid-migration. Adding -p 1 serializes package execution while preserving t.Parallel() within each package.
This commit is contained in:
2
.github/workflows/go.yml
vendored
2
.github/workflows/go.yml
vendored
@@ -57,7 +57,7 @@ jobs:
|
||||
run: go mod download
|
||||
|
||||
- name: Run Tests with Race Detector and Coverage
|
||||
run: go test -race -coverprofile=coverage.out ./... -timeout=10m
|
||||
run: go test -race -p 1 -coverprofile=coverage.out ./... -timeout=10m
|
||||
env:
|
||||
TEST_DB_HOST: localhost
|
||||
TEST_DB_PORT: 5433
|
||||
|
||||
Reference in New Issue
Block a user