Use stable golang version

This commit is contained in:
Holger Obermaier
2026-01-23 12:33:51 +01:00
parent c63df0ca85
commit 5a66b9cadd

View File

@@ -28,9 +28,17 @@ jobs:
- name: Setup Golang - name: Setup Golang
uses: actions/setup-go@v6 uses: actions/setup-go@v6
with: with:
go-version: 1.24 go-version: 'stable'
check-latest: true check-latest: true
- name: Install reviewdog
run: |
go install github.com/reviewdog/reviewdog/cmd/reviewdog@latest
- name: Install staticcheck
run: |
go install honnef.co/go/tools/cmd/staticcheck@latest
- name: Build MetricCollector - name: Build MetricCollector
run: make run: make
@@ -52,7 +60,6 @@ jobs:
# Running the linter requires likwid.h, which gets downloaded in the build step # Running the linter requires likwid.h, which gets downloaded in the build step
- name: Run Static Analysis with staticcheck - name: Run Static Analysis with staticcheck
run: | run: |
go install honnef.co/go/tools/cmd/staticcheck@latest
staticcheck -f json ./... > staticcheck.json || true staticcheck -f json ./... > staticcheck.json || true
- name: Upload staticcheck Report - name: Upload staticcheck Report
@@ -61,10 +68,6 @@ jobs:
name: staticcheck-json name: staticcheck-json
path: staticcheck.json path: staticcheck.json
- name: Install reviewdog
run: |
go install github.com/reviewdog/reviewdog/cmd/reviewdog@latest
- name: Report staticcheck results via reviewdog (use uploaded JSON) - name: Report staticcheck results via reviewdog (use uploaded JSON)
run: | run: |
# ensure reviewdog is in PATH # ensure reviewdog is in PATH