ci: config go-lint

This commit is contained in:
Li4n0
2021-04-21 19:02:44 +08:00
parent 3559894acc
commit d4a47aebca
+32
View File
@@ -0,0 +1,32 @@
name: Go
on:
push:
branches: [ master ]
paths:
- '**.go'
- 'go.mod'
- '.github/workflows/go.yml'
pull_request:
paths:
- '**.go'
- 'go.mod'
- '.github/workflows/go.yml'
env:
GOPROXY: "https://proxy.golang.org"
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
# Create frontend `dist` folder.
#
# - name: Create frontend dist folder
# run: mkdir frontend/dist/ && touch frontend/dist/1
- name: Run golangci-lint
uses: golangci/[email protected]
with:
version: v1.37.0
args: --timeout=30m