repogen/.github/workflows/lint.yml

32 lines
531 B
YAML
Raw Normal View History

2021-01-19 12:11:25 +00:00
name: lint
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
2021-01-19 12:26:26 +00:00
lint:
2021-01-19 12:11:25 +00:00
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