|
|
|
@ -55,7 +55,7 @@ jobs:
|
|
|
|
|
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
|
|
|
|
|
- uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v4.1.0
|
|
|
|
|
with:
|
|
|
|
|
go-version: '>=1.21 <1.22'
|
|
|
|
|
go-version: 1.21.x
|
|
|
|
|
- run: |
|
|
|
|
|
$TestTargets = go list ./... | Where-Object { $_ -NotMatch "(github.com/prometheus/prometheus/discovery.*|github.com/prometheus/prometheus/config|github.com/prometheus/prometheus/web)"}
|
|
|
|
|
go test $TestTargets -vet=off -v
|
|
|
|
@ -143,7 +143,7 @@ jobs:
|
|
|
|
|
uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v4.1.0
|
|
|
|
|
with:
|
|
|
|
|
cache: false
|
|
|
|
|
go-version: 1.20.x
|
|
|
|
|
go-version: 1.21.x
|
|
|
|
|
- name: Install snmp_exporter/generator dependencies
|
|
|
|
|
run: sudo apt-get update && sudo apt-get -y install libsnmp-dev
|
|
|
|
|
if: github.repository == 'prometheus/snmp_exporter'
|
|
|
|
|