Skip to content

Commit 9e76029

Browse files
committed
add ci workflow
1 parent 1dcb491 commit 9e76029

1 file changed

Lines changed: 23 additions & 0 deletions

File tree

.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: [master]
6+
pull_request:
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v4
13+
- uses: actions/setup-go@v5
14+
with:
15+
go-version-file: go.mod
16+
- name: Format
17+
run: test -z "$(gofmt -l .)"
18+
- name: Vet
19+
run: go vet ./...
20+
- name: Build
21+
run: go build ./...
22+
- name: Test
23+
run: go test -race ./...

0 commit comments

Comments
 (0)