Skip to content
This repository has been archived by the owner on Dec 5, 2024. It is now read-only.

Commit

Permalink
upgrade to go1.20
Browse files Browse the repository at this point in the history
  • Loading branch information
greenpau committed Sep 5, 2023
1 parent 9f328f4 commit 6c9ad61
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 486 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
- name: Set up go
uses: actions/setup-go@v3
with:
go-version: 1.19
go-version: 1.20

- name: Run goreleaser
uses: goreleaser/goreleaser-action@v3
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
name: build

on:
workflow_dispatch: {}
push:
branches:
- main
Expand All @@ -13,20 +14,20 @@ jobs:
core:
strategy:
matrix:
go-version: [1.19.x]
go-version: [1.20.x]
platform: [ubuntu-latest]
name: Build
runs-on: ${{ matrix.platform }}
env:
GOBIN: /home/runner/.local/bin
steps:
- name: Install Go
uses: actions/setup-go@v1
uses: actions/setup-go@v3
with:
go-version: ${{ matrix.go-version }}
id: go
- name: Check out code into the Go module directory
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: Amend Environment Path
run: |
mkdir -p /home/runner/.local/bin
Expand Down Expand Up @@ -66,12 +67,11 @@ jobs:
find /home/runner/.local/bin
- name: Run tests
run: |
make test || true
make test
- name: Generate coverage report
run: make coverage
- name: Upload coverage report
uses: actions/upload-artifact@v1
uses: actions/upload-artifact@v3
with:
name: Test Coverage Report
path: .coverage/coverage.html
22 changes: 11 additions & 11 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
module github.com/greenpau/ovs_exporter

go 1.18
go 1.20

require (
github.com/go-kit/log v0.2.1
github.com/greenpau/ovsdb v1.0.3
github.com/prometheus/client_golang v1.13.0
github.com/prometheus/common v0.37.0
github.com/greenpau/ovsdb v1.0.4
github.com/prometheus/client_golang v1.16.0
github.com/prometheus/common v0.44.0
)

require (
github.com/beorn7/perks v1.0.1 // indirect
github.com/cespare/xxhash/v2 v2.1.2 // indirect
github.com/cespare/xxhash/v2 v2.2.0 // indirect
github.com/go-logfmt/logfmt v0.5.1 // indirect
github.com/golang/protobuf v1.5.2 // indirect
github.com/matttproud/golang_protobuf_extensions v1.0.2 // indirect
github.com/prometheus/client_model v0.2.0 // indirect
github.com/prometheus/procfs v0.8.0 // indirect
golang.org/x/sys v0.0.0-20220926163933-8cfa568d3c25 // indirect
google.golang.org/protobuf v1.28.1 // indirect
github.com/golang/protobuf v1.5.3 // indirect
github.com/matttproud/golang_protobuf_extensions v1.0.4 // indirect
github.com/prometheus/client_model v0.4.0 // indirect
github.com/prometheus/procfs v0.10.1 // indirect
golang.org/x/sys v0.8.0 // indirect
google.golang.org/protobuf v1.30.0 // indirect
)
Loading

0 comments on commit 6c9ad61

Please sign in to comment.