ci: add Gitea Actions workflow with gofmt and test jobs #10

Merged
thuanle merged 2 commits from feat/ci-workflow into main 2026-04-27 22:47:51 +07:00
Collaborator

Summary

  • Add Gitea Actions CI workflow at .gitea/workflows/ci.yml
  • Trigger on pull_request events
  • Two independent jobs:
    • fmt: setup Go from go.mod, run gofmt -l ., fail if any file is not formatted
    • test: setup Go from go.mod, run go test ./...
  • Fix gofmt issues (import ordering) in 7 files so CI passes from the start

Test evidence

$ gofmt -l .
# (no output — all files formatted)

$ go vet ./...
# (no output — all clean)

$ go test ./...
ok  thuanle.me/claw-email-bridge/internal/ai_client
ok  thuanle.me/claw-email-bridge/internal/api
ok  thuanle.me/claw-email-bridge/internal/config
ok  thuanle.me/claw-email-bridge/internal/database
ok  thuanle.me/claw-email-bridge/internal/mail

Fixes #7

## Summary - Add Gitea Actions CI workflow at `.gitea/workflows/ci.yml` - Trigger on `pull_request` events - Two independent jobs: - **fmt**: setup Go from `go.mod`, run `gofmt -l .`, fail if any file is not formatted - **test**: setup Go from `go.mod`, run `go test ./...` - Fix gofmt issues (import ordering) in 7 files so CI passes from the start ## Test evidence ``` $ gofmt -l . # (no output — all files formatted) $ go vet ./... # (no output — all clean) $ go test ./... ok thuanle.me/claw-email-bridge/internal/ai_client ok thuanle.me/claw-email-bridge/internal/api ok thuanle.me/claw-email-bridge/internal/config ok thuanle.me/claw-email-bridge/internal/database ok thuanle.me/claw-email-bridge/internal/mail ``` Fixes #7
claudecode added 1 commit 2026-04-27 22:35:25 +07:00
ci: add Gitea Actions workflow with gofmt and test jobs
CI / test (pull_request) Has been cancelled
CI / fmt (pull_request) Has been cancelled
dbe5cab56e
Add CI workflow at .gitea/workflows/ci.yml triggered on pull_request
with two jobs: fmt (gofmt check) and test (go test ./...).

Fix gofmt issues (import ordering) in 7 files so CI passes from
the start.

Fixes #7

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
thuanle requested changes 2026-04-27 22:38:41 +07:00
@@ -0,0 +5,4 @@
jobs:
fmt:
runs-on: ubuntu-latest
Owner

runs-on: linux

runs-on: linux
thuanle marked this conversation as resolved
thuanle requested review from codex 2026-04-27 22:39:50 +07:00
claudecode added 1 commit 2026-04-27 22:41:48 +07:00
ci: use 'linux' runner label instead of 'ubuntu-latest'
CI / test (pull_request) Successful in 14m51s
CI / fmt (pull_request) Successful in 5m17s
a6734c126d
Gitea runners use 'linux' label, not GitHub's 'ubuntu-latest'.
claudecode reviewed 2026-04-27 22:43:13 +07:00
claudecode left a comment
Author
Collaborator

Fixed in dbe5cab — changed runs-on: ubuntu-latestruns-on: linux in both jobs.

Fixed in dbe5cab — changed `runs-on: ubuntu-latest` → `runs-on: linux` in both jobs.
@@ -0,0 +5,4 @@
jobs:
fmt:
runs-on: linux
Author
Collaborator

Fixed — updated to runs-on: linux. Thanks!

Fixed — updated to `runs-on: linux`. Thanks!
thuanle marked this conversation as resolved
codex approved these changes 2026-04-27 22:47:26 +07:00
codex left a comment
Collaborator

PASS

No blocking issues found in the latest update.

Validation:

  • gofmt -l .
  • go vet ./...
  • go test ./...

Non-blocking note:

  • Gitea Actions run 553 for head a6734c1 was in_progress when I checked, but the runner label fix (runs-on: linux) is applied and local validation passed.
PASS No blocking issues found in the latest update. Validation: - gofmt -l . - go vet ./... - go test ./... Non-blocking note: - Gitea Actions run `553` for head `a6734c1` was `in_progress` when I checked, but the runner label fix (`runs-on: linux`) is applied and local validation passed.
thuanle merged commit 8011b4ed2d into main 2026-04-27 22:47:51 +07:00
thuanle deleted branch feat/ci-workflow 2026-04-27 22:47:53 +07:00
Sign in to join this conversation.
No labels
3 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: thuanle/claw-email#10