ci: lint
Some checks failed
checks / build (push) Failing after 5m14s
checks / build (pull_request) Failing after 5m18s

This commit is contained in:
张泊明518370910136 2024-09-19 19:15:56 -04:00
parent 075e92fe49
commit 4640411b93
GPG Key ID: D47306D7062CDA9D
2 changed files with 9 additions and 1 deletions

View File

@ -27,6 +27,11 @@ jobs:
go env -w GO111MODULE=on go env -w GO111MODULE=on
go env -w GOPROXY=https://goproxy.io,direct go env -w GOPROXY=https://goproxy.io,direct
chown -R root:root /root/.ssh chown -R root:root /root/.ssh
- name: Setup golangci-lint
run: |
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.61.0
- name: Lint
run: make lint
- name: Build - name: Build
run: make build run: make build
- name: Test - name: Test

View File

@ -1,4 +1,4 @@
.PHONY: all build clean prepare-test test ci-test .PHONY: all build clean lint prepare-test test ci-test
BUILD_DIR = ./build BUILD_DIR = ./build
TMP_DIR = ./tmp TMP_DIR = ./tmp
@ -15,6 +15,9 @@ clean:
rm -rf $(TMP_DIR)/* rm -rf $(TMP_DIR)/*
rm -rf *.out rm -rf *.out
lint:
golangci-lint run
prepare-test: prepare-test:
git submodule update --init --remote git submodule update --init --remote