Skip to content

Commit 54c3ee4

Browse files
committed
add github actions
1 parent c9c4fec commit 54c3ee4

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

.github/workflows/lint.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Go
2+
3+
on:
4+
push:
5+
pull_request_target:
6+
7+
jobs:
8+
gobuild:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/setup-go@v5
12+
with:
13+
go-version: 1.18
14+
- uses: actions/checkout@v4
15+
- name: go build
16+
run: go build -v ./...
17+
18+
gotest:
19+
runs-on: ubuntu-latest
20+
steps:
21+
- uses: actions/setup-go@v5
22+
with:
23+
go-version: 1.18
24+
- uses: actions/checkout@v4
25+
- name: go build
26+
run: go test -v ./...
27+
28+
golangci:
29+
runs-on: ubuntu-latest
30+
steps:
31+
- uses: actions/setup-go@v5
32+
with:
33+
go-version: 1.18
34+
- uses: actions/checkout@v4
35+
- name: golangci-lint
36+
uses: golangci/golangci-lint-action@v6
37+
with:
38+
version: latest

0 commit comments

Comments
 (0)