2020-12-05 19:42:59 +00:00
|
|
|
name: lint
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
2021-01-17 21:55:04 +00:00
|
|
|
branches: [ main ]
|
2020-12-05 19:42:59 +00:00
|
|
|
pull_request:
|
2021-01-17 21:55:04 +00:00
|
|
|
branches: [ main ]
|
2020-12-05 19:42:59 +00:00
|
|
|
|
|
|
|
jobs:
|
2021-01-16 15:14:32 +00:00
|
|
|
golangci-lint:
|
|
|
|
name: golangci-lint
|
2020-12-05 19:42:59 +00:00
|
|
|
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
|
|
|
|
- uses: golangci/golangci-lint-action@v2
|
|
|
|
with:
|
2021-03-20 13:14:41 +00:00
|
|
|
version: v1.38
|
2021-01-16 15:14:32 +00:00
|
|
|
|
|
|
|
go-mod-tidy:
|
|
|
|
name: go-mod-tidy
|
|
|
|
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
|
|
|
|
- uses: actions/setup-go@v2
|
|
|
|
|
|
|
|
- run: |
|
|
|
|
go mod download
|
|
|
|
go mod tidy
|
|
|
|
git diff --exit-code
|