Skip to content
This repository was archived by the owner on Mar 24, 2026. It is now read-only.

Commit a4345c6

Browse files
committed
ci: add github actions workflow and fix readme badge
- Create .github/workflows/ci.yml with test and build steps - Fix CI badge link in README.md to point to the new workflow
1 parent ee755aa commit a4345c6

1 file changed

Lines changed: 36 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
branches: [ main ]
8+
9+
jobs:
10+
test:
11+
name: Test and Build
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Checkout code
15+
uses: actions/checkout@v4
16+
17+
- name: Set up Go
18+
uses: actions/setup-go@v5
19+
with:
20+
go-version: '1.25.x'
21+
cache: true
22+
23+
- name: Install dependencies
24+
run: go mod download
25+
26+
- name: Verify dependencies
27+
run: go mod verify
28+
29+
- name: Run vet
30+
run: go vet ./...
31+
32+
- name: Run tests
33+
run: go test -v -race -coverprofile=coverage.txt -covermode=atomic ./...
34+
35+
- name: Build
36+
run: go build -v -o toolkit ./cmd/toolkit

0 commit comments

Comments
 (0)