diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index 07a5a53..43b701c 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -36,6 +36,14 @@ jobs: run: go vet ./... - run: npx playwright install --with-deps chromium - run: npm run test:e2e + - name: Upload Playwright results on failure + if: failure() + uses: actions/upload-artifact@v4 + with: + name: playwright-report + path: test-results/ + retention-days: 7 + if-no-files-found: ignore - uses: azure/setup-helm@v4.3.0 - run: | helm lint deploy/chart diff --git a/server/internal/transport/http.go b/server/internal/transport/http.go index 79ee6f3..ecf19e3 100644 --- a/server/internal/transport/http.go +++ b/server/internal/transport/http.go @@ -5,6 +5,7 @@ import ( "context" "encoding/json" "io" + "log/slog" "net" "net/http" "os" @@ -433,6 +434,7 @@ func (h *HTTP) socket(w http.ResponseWriter, r *http.Request) { } if err = h.s.world.Intent(id, intent); err != nil { c.Message = err.Error() + slog.Warn("intent rejected", "character", id, "op", intent.Op, "target", intent.Target, "error", err) } h.s.mu.Unlock() }