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:
|
|
|
|
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
|
|
|
|
|
|
|
jobs:
|
|
|
|
golangci:
|
|
|
|
name: lint
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Checkout repository
|
2022-03-16 11:26:54 +03:00
|
|
|
uses: actions/checkout@v3
|
2021-09-16 03:01:42 +03:00
|
|
|
|
|
|
|
- name: Lint
|
|
|
|
uses: golangci/golangci-lint-action@v2
|
|
|
|
with:
|
2022-03-16 11:26:54 +03:00
|
|
|
version: v1.44.2
|