32 lines
532 B
YAML
32 lines
532 B
YAML
|
name: lint
|
||
|
|
||
|
on:
|
||
|
push:
|
||
|
branches: [ main ]
|
||
|
pull_request:
|
||
|
branches: [ main ]
|
||
|
|
||
|
jobs:
|
||
|
build:
|
||
|
runs-on: ubuntu-latest
|
||
|
steps:
|
||
|
- uses: actions/checkout@v2
|
||
|
|
||
|
- name: Set up Go
|
||
|
uses: actions/setup-go@v2
|
||
|
with:
|
||
|
go-version: 1.15
|
||
|
|
||
|
- name: Install dependencies
|
||
|
run: go get -u golang.org/x/lint/golint
|
||
|
|
||
|
- name: Vet & Lint
|
||
|
run: |
|
||
|
go vet ./...
|
||
|
golint ./...
|
||
|
|
||
|
- name: golangci-lint
|
||
|
uses: golangci/golangci-lint-action@v2
|
||
|
with:
|
||
|
version: v1.35.2
|