Merge remote branch

This commit is contained in:
yaling888
2021-10-21 22:37:30 +08:00
97 changed files with 1147 additions and 577 deletions

12
.github/workflows/linter.yml vendored Normal file
View File

@ -0,0 +1,12 @@
name: Linter
on: [push, pull_request]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: golangci-lint
uses: golangci/golangci-lint-action@v2
with:
version: latest
args: --build-tags=build_local --disable-all -E govet -E gofumpt -E megacheck ./...

View File

@ -1,9 +1,7 @@
name: Go
name: Release
on: [push]
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Get latest go version
@ -27,7 +25,7 @@ jobs:
restore-keys: |
${{ runner.os }}-go-
- name: Get dependencies, run test and static check
- name: Get dependencies, run test
run: |
# fetch python cross compile source files
mkdir -p bin/python/
@ -50,9 +48,6 @@ jobs:
cd ../../
go test ./...
go vet ./...
go install honnef.co/go/tools/cmd/staticcheck@latest
staticcheck -- $(go list ./...)
# init xgo
docker pull techknowlogick/xgo:latest