diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 01c539dc..f13db857 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -23,7 +23,6 @@ on: - master env: - GO_VER: '^1.21.1' PROMU_VER: '0.14.0' PROMTOOL_VER: '2.43.0' @@ -32,9 +31,9 @@ jobs: runs-on: windows-2019 steps: - uses: actions/checkout@v3 - - uses: actions/setup-go@v3 + - uses: actions/setup-go@v4 with: - go-version: ${{ env.GO_VER }} + go-version-file: 'go.mod' - name: Test run: make test @@ -56,9 +55,9 @@ jobs: runs-on: windows-2019 steps: - uses: actions/checkout@v3 - - uses: actions/setup-go@v3 + - uses: actions/setup-go@v4 with: - go-version: ${{ env.GO_VER }} + go-version-file: 'go.mod' - name: Install promtool run: | @@ -88,9 +87,9 @@ jobs: git config --global core.eol lf - uses: actions/checkout@v3 - - uses: actions/setup-go@v3 + - uses: actions/setup-go@v4 with: - go-version: ${{ env.GO_VER }} + go-version-file: 'go.mod' - name: golangci-lint uses: golangci/golangci-lint-action@v3 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e0959d83..a5f27788 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -25,7 +25,7 @@ jobs: - uses: actions/setup-go@v3 with: - go-version: '^1.21.1' + go-version-file: 'go.mod' - name: Install Build deps run: | diff --git a/go.mod b/go.mod index 621cc35d..347dafeb 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/prometheus-community/windows_exporter -go 1.19 +go 1.21 require ( github.com/Microsoft/hcsshim v0.11.4