Skip to content

Commit

Permalink
PMM-7 use the version from go.mod
Browse files Browse the repository at this point in the history
  • Loading branch information
ademidoff committed Feb 9, 2024
1 parent 2012b1b commit b8180c9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/golangci-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,16 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: install Go
uses: actions/setup-go@v5
with:
go-version: 1.18.x
go-version-file: ${{ github.workspace }}/go.mod

- 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/[email protected]
with:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: 1.21
go-version-file: ${{ github.workspace }}/go.mod
- run: go mod download
- run: make test-e2e
- name: Upload artifact
Expand All @@ -37,7 +37,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: 1.21
go-version-file: ${{ github.workspace }}/go.mod
- run: go install github.com/google/go-jsonnet/cmd/jsonnet@latest
- run: go install github.com/google/go-jsonnet/cmd/jsonnetfmt@latest
- run: go install github.com/jsonnet-bundler/jsonnet-bundler/cmd/jb@latest
Expand Down

0 comments on commit b8180c9

Please sign in to comment.