ci: use gitea actions instead of drone #40

Merged
张泊明518370910136 merged 40 commits from actions into master 2024-09-20 08:03:01 +08:00
2 changed files with 9 additions and 1 deletions
Showing only changes of commit 4640411b93 - Show all commits

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