Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,27 @@ on:
branches: [main, develop]

jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: '1.22'
- name: gofmt
working-directory: go
run: |
unformatted=$(gofmt -l .)
if [ -n "$unformatted" ]; then
echo "These files are not gofmt-formatted:"
echo "$unformatted"
echo "Run: gofmt -w ."
exit 1
fi
- name: go vet
working-directory: go
run: go vet ./...

build:
runs-on: ${{ matrix.os }}
strategy:
Expand Down
2 changes: 1 addition & 1 deletion docs/development/release.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ Prefer the release-please flow for normal releases.

| Workflow | Trigger | Purpose |
|----------|---------|---------|
| `run-tests.yml` | PR + push | Build + test Go binary |
| `run-tests.yml` | PR | Lint (gofmt + go vet), build, and test the Go binary |
| `pr-title.yml` | PR opened/edited | Enforce Conventional Commits PR title |
| `release-please.yml` | Push to `main` | Maintain the release PR; on merge, tag + release + build binaries |
| `release.yml` | Tag push `v*`, dispatch, or called by release-please | Build multi-platform binaries + attach to the release |
Expand Down
Loading