Skip to content

Commit f8f9452

Browse files
committed
ci: add quality gate workflow
Runs fmt-check, vet, and test on push to main and PRs. Skips docs-only changes. Uses go-version-file for version pinning.
1 parent e987adb commit f8f9452

1 file changed

Lines changed: 21 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [main]
6+
paths-ignore: [docs/**]
7+
pull_request:
8+
branches: [main]
9+
paths-ignore: [docs/**]
10+
11+
jobs:
12+
check:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v4
16+
- uses: actions/setup-go@v5
17+
with:
18+
go-version-file: go.mod
19+
- run: make fmt-check
20+
- run: make vet
21+
- run: make test

0 commit comments

Comments
 (0)