Upgrade linter running in CI

Signed-off-by: Marco Pracucci <marco@pracucci.com>
This commit is contained in:
Marco Pracucci 2024-01-05 12:39:05 +01:00
parent 96296c3675
commit ca7dbc4342
No known key found for this signature in database
GPG key ID: 74C1BD403D2DF9B5

View file

@ -20,11 +20,12 @@ jobs:
- name: install Go
uses: actions/setup-go@v2
with:
go-version: '>=1.20 <1.21'
go-version: '>=1.21 <1.22'
- name: Install snmp_exporter/generator dependencies
run: sudo apt-get update && sudo apt-get -y install libsnmp-dev
if: github.repository == 'prometheus/snmp_exporter'
- name: Lint
uses: golangci/golangci-lint-action@v3.3.1
uses: golangci/golangci-lint-action@v3.7.0
with:
version: v1.52.2
# # Make sure to sync this with Makefile.common.
version: v1.55.2