mirror of
https://github.com/prometheus/prometheus.git
synced 2025-03-05 20:59:13 -08:00
Upgrade linter running in CI
Signed-off-by: Marco Pracucci <marco@pracucci.com>
This commit is contained in:
parent
96296c3675
commit
ca7dbc4342
7
.github/workflows/golangci-lint.yml
vendored
7
.github/workflows/golangci-lint.yml
vendored
|
@ -20,11 +20,12 @@ jobs:
|
||||||
- name: install Go
|
- name: install Go
|
||||||
uses: actions/setup-go@v2
|
uses: actions/setup-go@v2
|
||||||
with:
|
with:
|
||||||
go-version: '>=1.20 <1.21'
|
go-version: '>=1.21 <1.22'
|
||||||
- name: Install snmp_exporter/generator dependencies
|
- name: Install snmp_exporter/generator dependencies
|
||||||
run: sudo apt-get update && sudo apt-get -y install libsnmp-dev
|
run: sudo apt-get update && sudo apt-get -y install libsnmp-dev
|
||||||
if: github.repository == 'prometheus/snmp_exporter'
|
if: github.repository == 'prometheus/snmp_exporter'
|
||||||
- name: Lint
|
- name: Lint
|
||||||
uses: golangci/golangci-lint-action@v3.3.1
|
uses: golangci/golangci-lint-action@v3.7.0
|
||||||
with:
|
with:
|
||||||
version: v1.52.2
|
# # Make sure to sync this with Makefile.common.
|
||||||
|
version: v1.55.2
|
||||||
|
|
Loading…
Reference in a new issue