Skip to content
This repository was archived by the owner on Feb 6, 2025. It is now read-only.

Commit 314357e

Browse files
committed
Add CI
1 parent f75eae1 commit 314357e

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

.github/workflows/ci.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
pull_request:
9+
branches:
10+
- main
11+
12+
jobs:
13+
test:
14+
name: Lint & test code.
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: actions/checkout@v4
18+
19+
- uses: actions/setup-go@v5
20+
with:
21+
go-version-file: go.mod
22+
23+
- uses: golangci/golangci-lint-action@v3
24+
with:
25+
version: "v1.55.2"
26+
27+
- run: go vet ./...
28+
29+
- run: env CGO_ENABLED=0 go test -cover ./...
30+
31+
- run: go test -race -cover ./...

0 commit comments

Comments
 (0)