mirror of
https://github.com/prometheus/alertmanager
synced 2025-02-27 00:00:43 +00:00
28 lines
588 B
YAML
28 lines
588 B
YAML
|
name: golangci-lint
|
||
|
on:
|
||
|
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
|
||
|
uses: actions/checkout@v3
|
||
|
- name: install Go
|
||
|
uses: actions/setup-go@v2
|
||
|
with:
|
||
|
go-version: 1.19.x
|
||
|
- run: make build
|
||
|
- name: Lint
|
||
|
uses: golangci/golangci-lint-action@v3.4.0
|
||
|
with:
|
||
|
version: v1.51.2
|