Skip to content

Commit bafadf8

Browse files
committed
ci: add CI workflow to run tests on push and pull requests
1 parent fcff20f commit bafadf8

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

.github/workflows/ci.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: ["**"]
6+
pull_request:
7+
branches: ["**"]
8+
9+
jobs:
10+
test:
11+
name: Test
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Checkout
15+
uses: actions/checkout@v4
16+
17+
- name: Set up Go
18+
uses: actions/setup-go@v5
19+
with:
20+
go-version-file: go.mod
21+
cache: true
22+
23+
- name: Build
24+
run: go build ./...
25+
26+
- name: Vet
27+
run: go vet ./...
28+
29+
- name: Test
30+
run: go test -race ./...

0 commit comments

Comments
 (0)