Skip to content

Commit f4219ce

Browse files
osteeleclaude
andauthored
chore: consolidate CI workflows (#134)
- Rename go.yml to test.yml (workflow name: Test) - Rename golangci-lint.yml to lint.yml (workflow name: Lint) - Delete redundant ci.yml - Move vet from OS matrix to single Ubuntu job - Move format-check from ci.yml to test.yml 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude <[email protected]>
1 parent 8cf0b70 commit f4219ce

File tree

3 files changed

+56
-70
lines changed

3 files changed

+56
-70
lines changed

.github/workflows/ci.yml

Lines changed: 0 additions & 49 deletions
This file was deleted.
Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: golangci-lint
1+
name: Lint
22

33
on:
44
push:
@@ -11,8 +11,7 @@ permissions:
1111
pull-requests: read
1212

1313
jobs:
14-
golangci:
15-
name: lint
14+
lint:
1615
runs-on: ubuntu-latest
1716
steps:
1817
- uses: actions/checkout@v4
Lines changed: 54 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Build Status
1+
name: Test
22

33
on:
44
push:
@@ -31,11 +31,62 @@ jobs:
3131
- name: Build
3232
run: make build
3333

34+
- name: Test
35+
run: make test
36+
37+
vet:
38+
runs-on: ubuntu-latest
39+
40+
steps:
41+
- name: Checkout
42+
uses: actions/checkout@v4
43+
44+
- name: Install Go
45+
uses: actions/setup-go@v5
46+
with:
47+
go-version: 1.24.x
48+
49+
- name: Install dependencies
50+
run: make deps
51+
3452
- name: Run go vet
3553
run: make vet
3654

37-
- name: Test
38-
run: make test
55+
format-check:
56+
runs-on: ubuntu-latest
57+
58+
steps:
59+
- name: Checkout
60+
uses: actions/checkout@v4
61+
62+
- name: Install Go
63+
uses: actions/setup-go@v5
64+
with:
65+
go-version: 1.24.x
66+
67+
- name: Check formatting
68+
run: |
69+
make fmt
70+
if [ -n "$(git status --porcelain)" ]; then
71+
echo "Code is not formatted. Please run 'make fmt'"
72+
git diff
73+
exit 1
74+
fi
75+
76+
verify-mod:
77+
runs-on: ubuntu-latest
78+
79+
steps:
80+
- name: Checkout
81+
uses: actions/checkout@v4
82+
83+
- name: Install Go
84+
uses: actions/setup-go@v5
85+
with:
86+
go-version: 1.24.x
87+
88+
- name: Check go.mod
89+
run: make check-mod
3990

4091
coverage:
4192
runs-on: ubuntu-latest
@@ -83,18 +134,3 @@ jobs:
83134
echo "" >> $GITHUB_STEP_SUMMARY
84135
echo "### Per-package coverage:" >> $GITHUB_STEP_SUMMARY
85136
go tool cover -func=coverage.out | grep -v "total:" | awk '{printf "- %s: %s\n", $2, $3}' >> $GITHUB_STEP_SUMMARY
86-
87-
verify-mod:
88-
runs-on: ubuntu-latest
89-
90-
steps:
91-
- name: Checkout
92-
uses: actions/checkout@v4
93-
94-
- name: Install Go
95-
uses: actions/setup-go@v5
96-
with:
97-
go-version: 1.24.x
98-
99-
- name: Check go.mod
100-
run: make check-mod

0 commit comments

Comments
 (0)