ci(users): add pipeline (vet, gofmt, race, lint, migrate, integration)

Mirrors the coordinator workflow against a scimesh_users Postgres service.
Switches the test request helper to http.NewRequestWithContext so the noctx
linter passes on the go1.22 module.
This commit is contained in:
Efremenko Arhip
2026-07-26 16:27:24 +03:00
parent 1b1b971378
commit 67407220c3
2 changed files with 70 additions and 1 deletions
+4 -1
View File
@@ -47,7 +47,10 @@ func do(t *testing.T, h http.Handler, method, path, token string, body any) *htt
t.Fatal(err)
}
}
req := httptest.NewRequest(method, path, &buf)
req, err := http.NewRequestWithContext(context.Background(), method, path, &buf)
if err != nil {
t.Fatal(err)
}
if token != "" {
req.Header.Set("Authorization", "Bearer "+token)
}