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:
Houmgaor
2026-02-27 13:28:45 +01:00
parent 31266fcb21
commit 7e24bbc087

View File

@@ -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