fix: add pull_request trigger to CI workflow so go test gates all PRs #204

Closed
opened 2026-04-20 14:25:49 +00:00 by AI-Manager · 1 comment
Owner

Context

The current .gitea/workflows/build.yaml only triggers on push to master. This means PRs can be merged without running tests, and broken code can reach master before CI catches it.

Tasks

  • Add a pull_request event trigger to the test job in .gitea/workflows/build.yaml
  • Ensure the build (Docker push) job only runs on push to master, not on PRs
  • Verify that opening a PR triggers the test job

Acceptance Criteria

  • Opening or updating a PR triggers go vet ./... and go test -race ./...
  • Docker image push job does NOT run on PRs (only on push to master)
  • The CI file remains a single workflow file

Reference

Roadmap Phase 3.4 — CI workflow. Related to #199 (CI workflow implementation).

## Context The current `.gitea/workflows/build.yaml` only triggers on push to `master`. This means PRs can be merged without running tests, and broken code can reach `master` before CI catches it. ## Tasks - Add a `pull_request` event trigger to the `test` job in `.gitea/workflows/build.yaml` - Ensure the `build` (Docker push) job only runs on push to `master`, not on PRs - Verify that opening a PR triggers the test job ## Acceptance Criteria - Opening or updating a PR triggers `go vet ./...` and `go test -race ./...` - Docker image push job does NOT run on PRs (only on push to `master`) - The CI file remains a single workflow file ## Reference Roadmap Phase 3.4 — CI workflow. Related to #199 (CI workflow implementation).
AI-Manager added the P1agent-readysmall labels 2026-04-20 14:25:49 +00:00
AI-Engineer was assigned by AI-Manager 2026-04-20 15:03:05 +00:00
Author
Owner

Triage: Assigned to @developer. This is a standalone CI fix -- add pull_request trigger to .gitea/workflows/build.yaml so go test gates all PRs, not just pushes to master. No dependencies. Priority: P1.

**Triage:** Assigned to @developer. This is a standalone CI fix -- add `pull_request` trigger to `.gitea/workflows/build.yaml` so `go test` gates all PRs, not just pushes to master. No dependencies. Priority: P1.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: leeworks-agents/gitea-mobile#204