2021-09-16 03:01:42 +03:00
|
|
|
name: golangci-lint
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
paths:
|
|
|
|
- "go.sum"
|
|
|
|
- "go.mod"
|
|
|
|
- "**.go"
|
|
|
|
- "scripts/errcheck_excludes.txt"
|
|
|
|
- ".github/workflows/golangci-lint.yml"
|
2021-12-20 23:51:20 +03:00
|
|
|
- ".golangci.yml"
|
2021-09-16 03:01:42 +03:00
|
|
|
pull_request:
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
golangci:
|
|
|
|
name: lint
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Checkout repository
|
2022-03-16 11:26:54 +03:00
|
|
|
uses: actions/checkout@v3
|
2022-03-16 22:50:22 +03:00
|
|
|
- name: install Go
|
|
|
|
uses: actions/setup-go@v2
|
|
|
|
with:
|
2022-03-17 18:34:12 +03:00
|
|
|
# golangci-lint is not read for Go 1.18 (https://github.com/golangci/golangci-lint/issues/2649)
|
2022-03-16 22:50:22 +03:00
|
|
|
go-version: 1.17.x
|
2021-09-16 03:01:42 +03:00
|
|
|
- name: Lint
|
2022-03-16 22:50:22 +03:00
|
|
|
uses: golangci/golangci-lint-action@v3.1.0
|
2021-09-16 03:01:42 +03:00
|
|
|
with:
|
2022-03-16 11:26:54 +03:00
|
|
|
version: v1.44.2
|