repogen/.github/workflows/lint.yml
2021-01-19 19:26:26 +07:00

31 lines
531 B
YAML

name: lint
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
lint:
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