mirror of
https://github.com/prometheus/prometheus.git
synced 2024-11-18 03:24:05 -08:00
c31a3e4c92
* Build with Go 1.18 * Update golangci-lint version Signed-off-by: Sylvain Rabot <sylvain@abstraction.fr>
28 lines
572 B
YAML
28 lines
572 B
YAML
name: golangci-lint
|
|
on:
|
|
push:
|
|
paths:
|
|
- "go.sum"
|
|
- "go.mod"
|
|
- "**.go"
|
|
- "scripts/errcheck_excludes.txt"
|
|
- ".github/workflows/golangci-lint.yml"
|
|
- ".golangci.yml"
|
|
pull_request:
|
|
|
|
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.18.x
|
|
- name: Lint
|
|
uses: golangci/golangci-lint-action@v3.1.0
|
|
with:
|
|
version: v1.45.2
|