Skip to content

Commit 6f4fbbd

Browse files
committed
ci: add GitHub Actions CI (go vet + tests)
1 parent 6b3a01e commit 6f4fbbd

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

.github/workflows/ci.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
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+
- uses: actions/checkout@v4
14+
- name: Set up Go
15+
uses: actions/setup-go@v4
16+
with:
17+
go-version: '1.21'
18+
- name: Install dependencies
19+
run: go mod download
20+
- name: Run vet
21+
run: go vet ./...
22+
- name: Run tests
23+
run: go test ./...

0 commit comments

Comments
 (0)