Skip to content

Commit 07c20ad

Browse files
committed
update: build action
1 parent f71fac7 commit 07c20ad

File tree

1 file changed

+17
-2
lines changed

1 file changed

+17
-2
lines changed

.github/workflows/ci.yml

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,23 @@ jobs:
2323
go-version: 1.24
2424

2525
- name: Install dependencies
26-
run: go mod download && go install golang.org/x/lint/golint
26+
run: |
27+
go install honnef.co/go/tools/cmd/staticcheck@latest
28+
go install golang.org/x/lint/golint
29+
go mod download
30+
echo "$HOME/go/bin" >> $GITHUB_PATH
2731
32+
- name: Run staticcheck
33+
run: |
34+
staticcheck ./...
35+
golint ./...
36+
2837
- name: Build
29-
run: make
38+
run: GOOS=linux go build -o dist/${BINARY_NAME} ipvsctl.go
39+
40+
- name: Run tests
41+
run: |
42+
go test -v -coverprofile=cover.out ./...
43+
go tool -v cover -func=cover.out
44+
3045

0 commit comments

Comments
 (0)