适配1-30的客户端 #496
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Go | |
on: | |
push: | |
branches: "*" | |
pull_request: | |
branches: "*" | |
paths-ignore: | |
- 'docs/**' | |
- 'vendor/**' | |
- '*.md' | |
- '*.yml' | |
jobs: | |
build: | |
name: ubuntu - Go v1.16 | |
runs-on: ubuntu-latest | |
steps: | |
- name: Set up Go | |
uses: actions/setup-go@v2 | |
with: | |
go-version: '1.16' | |
id: go | |
- name: Check out code into the Go module directory | |
uses: actions/checkout@v2 | |
with: | |
ref: ${{ github.ref }} | |
path: src/github.com/alibaba/open-local | |
- name: Install go ci lint | |
run: curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.39.0 | |
- name: Run Linter | |
run: golangci-lint run -v --timeout=10m | |
working-directory: src/github.com/alibaba/open-local | |