Skip to content

Commit 7f3f9ff

Browse files
committed
Add CI GitHub Actions workflow
1 parent d2ea39a commit 7f3f9ff

1 file changed

Lines changed: 32 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
9+
jobs:
10+
lint:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v6
14+
15+
- uses: actions/setup-go@v6
16+
with:
17+
go-version-file: go.mod
18+
19+
- name: Lint
20+
run: go tool golangci-lint run
21+
22+
test:
23+
runs-on: ubuntu-latest
24+
steps:
25+
- uses: actions/checkout@v6
26+
27+
- uses: actions/setup-go@v6
28+
with:
29+
go-version-file: go.mod
30+
31+
- name: Test
32+
run: go test ./...

0 commit comments

Comments
 (0)