prometheus/.github/workflows/golangci-lint.yml

35 lines
739 B
YAML
Raw Normal View History

name: golangci-lint
on:
push:
paths:
- "go.sum"
- "go.mod"
- "**.go"
- "scripts/errcheck_excludes.txt"
- ".github/workflows/golangci-lint.yml"
- ".golangci.yml"
pull_request:
paths:
- "go.sum"
- "go.mod"
- "**.go"
- "scripts/errcheck_excludes.txt"
- ".github/workflows/golangci-lint.yml"
- ".golangci.yml"
jobs:
golangci:
name: lint
runs-on: ubuntu-latest
steps:
- name: Checkout repository
2022-04-12 03:15:22 -07:00
uses: actions/checkout@v3
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: 1.18.x
- name: Lint
uses: golangci/golangci-lint-action@v2
with:
2022-04-12 03:15:22 -07:00
version: v1.45.2