add an all-in-one script for running tests; format and fix some code; add ci.yml
CI / main-server (RSpec + audits) (push) Failing after 1m12s
CI / game-server (go vet + go test -race) (push) Successful in 1m1s
CI / frontend (build + tests) (push) Successful in 9s

This commit is contained in:
2026-11-29 16:46:27 +03:00
parent a91eccbeaa
commit e52178c929
14 changed files with 474 additions and 139 deletions
+4 -4
View File
@@ -198,10 +198,10 @@ func (h *Handler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
if unverified != nil {
if existing := h.Manager.GetMatch(unverified.MatchID); existing != nil && existing.GameToken() == gameToken {
gc = &auth.GameClaims{
MatchID: existing.ID,
Player1ID: existing.PlayerIDs()[0],
Player2ID: existing.PlayerIDs()[1],
RawToken: gameToken,
MatchID: existing.ID,
Player1ID: existing.PlayerIDs()[0],
Player2ID: existing.PlayerIDs()[1],
RawToken: gameToken,
}
}
}
-2
View File
@@ -584,5 +584,3 @@ func TestFireWinOverWebSocket(t *testing.T) {
t.Fatalf("late join want END victory, got %v", lateEnd)
}
}