ci: use gitea actions instead of drone #40
|
@ -27,6 +27,11 @@ jobs:
|
|||
go env -w GO111MODULE=on
|
||||
go env -w GOPROXY=https://goproxy.io,direct
|
||||
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
|
||||
run: make build
|
||||
- name: Test
|
||||
|
|
5
Makefile
5
Makefile
|
@ -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
|
||||
TMP_DIR = ./tmp
|
||||
|
@ -15,6 +15,9 @@ clean:
|
|||
rm -rf $(TMP_DIR)/*
|
||||
rm -rf *.out
|
||||
|
||||
lint:
|
||||
golangci-lint run
|
||||
|
||||
prepare-test:
|
||||
git submodule update --init --remote
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user