mirror of
https://github.com/prometheus-community/windows_exporter.git
synced 2026-03-05 18:16:35 +00:00
8
.github/workflows/ci.yml
vendored
8
.github/workflows/ci.yml
vendored
@@ -85,9 +85,9 @@ jobs:
|
|||||||
go-version: '^1.17.5'
|
go-version: '^1.17.5'
|
||||||
|
|
||||||
- name: golangci-lint
|
- name: golangci-lint
|
||||||
uses: golangci/golangci-lint-action@v2
|
uses: golangci/golangci-lint-action@v3
|
||||||
with:
|
with:
|
||||||
version: v1.43
|
version: v1.45.2
|
||||||
args: "--timeout=5m"
|
args: "--timeout=5m"
|
||||||
|
|
||||||
# golangci-lint action doesn't always provide helpful output, so re-run without the action for
|
# golangci-lint action doesn't always provide helpful output, so re-run without the action for
|
||||||
@@ -128,8 +128,8 @@ jobs:
|
|||||||
- name: Install Build deps
|
- name: Install Build deps
|
||||||
run: |
|
run: |
|
||||||
dotnet tool install --global GitVersion.Tool --version 5.*
|
dotnet tool install --global GitVersion.Tool --version 5.*
|
||||||
go get "github.com/prometheus/promu@$($Env:PROMU_VER)"
|
go install "github.com/prometheus/promu@$($Env:PROMU_VER)"
|
||||||
go get github.com/josephspurrier/goversioninfo/cmd/goversioninfo@v1.2.0
|
go install github.com/josephspurrier/goversioninfo/cmd/goversioninfo@v1.4.0
|
||||||
# GOPATH\bin dir must be added to PATH else the `promu` and `goversioninfo` commands won't be found
|
# GOPATH\bin dir must be added to PATH else the `promu` and `goversioninfo` commands won't be found
|
||||||
echo "$(go env GOPATH)\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
|
echo "$(go env GOPATH)\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user