Skip to content

Commit 0832461

Browse files
jdeveraclaude
andcommitted
chore(ci): add CI workflow for tests and lint on PRs and main
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent b53cee3 commit 0832461

1 file changed

Lines changed: 41 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
9+
jobs:
10+
test:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout
14+
uses: actions/checkout@v6
15+
16+
- name: Set up Go
17+
uses: actions/setup-go@v6
18+
with:
19+
go-version-file: go.mod
20+
21+
- name: Build
22+
run: go build ./cmd/...
23+
24+
- name: Test
25+
run: go test ./...
26+
27+
lint:
28+
runs-on: ubuntu-latest
29+
steps:
30+
- name: Checkout
31+
uses: actions/checkout@v6
32+
33+
- name: Set up Go
34+
uses: actions/setup-go@v6
35+
with:
36+
go-version-file: go.mod
37+
38+
- name: Lint
39+
uses: golangci/golangci-lint-action@v7
40+
with:
41+
version: v2.11

0 commit comments

Comments
 (0)