Skip to content

Commit

Permalink
chore(deps): update go version to 1.18 (#1363)
Browse files Browse the repository at this point in the history
Co-authored-by: nils måsén <nils@piksel.se>
  • Loading branch information
jauderho and piksel committed Sep 4, 2022
1 parent 964879d commit e04a107
Show file tree
Hide file tree
Showing 10 changed files with 60 additions and 334 deletions.
17 changes: 7 additions & 10 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,20 +18,17 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.15.x
- name: Install linter
run: |
go get -u golang.org/x/lint/golint
- name: Lint files
run: |
golint -set_exit_status ./...
go-version: 1.18.x
- uses: dominikh/staticcheck-action@v1.2.0
with:
version: "2022.1.1"
test:
name: Test
strategy:
fail-fast: false
matrix:
go-version:
- 1.15.x
- 1.18.x
platform:
- macos-latest
- windows-latest
Expand All @@ -45,7 +42,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.15.x
go-version: 1.18.x
- name: Run tests
run: |
go test -v -coverprofile coverage.out -covermode atomic ./...
Expand All @@ -64,7 +61,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.15.x
go-version: 1.18.x
- name: Build
uses: goreleaser/goreleaser-action@v3
with:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release-dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.15
go-version: 1.18
- name: Build
run: ./build.sh
test:
Expand All @@ -24,7 +24,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.15
go-version: 1.18
- name: Test
run: go test -v -coverprofile coverage.out -covermode atomic ./...
- name: Publish coverage
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.15.x
go-version: 1.18.x
- name: Install linter
run: |
go get -u golang.org/x/lint/golint
Expand All @@ -34,7 +34,7 @@ jobs:
strategy:
matrix:
go-version:
- 1.15.x
- 1.18.x
platform:
- ubuntu-latest
- macos-latest
Expand All @@ -48,7 +48,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.15.x
go-version: 1.18.x
- name: Run tests
run: |
go test ./... -coverprofile coverage.out
Expand All @@ -70,7 +70,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.15.x
go-version: 1.18.x
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
Expand Down
36 changes: 35 additions & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/containrrr/watchtower

go 1.12
go 1.18

require (
github.com/containrrr/shoutrrr v0.6.1
Expand All @@ -22,6 +22,40 @@ require (
)

require (
github.com/Azure/go-ansiterm v0.0.0-20210617225240-d185dfc1b5a1 // indirect
github.com/beorn7/perks v1.0.1 // indirect
github.com/cespare/xxhash/v2 v2.1.1 // indirect
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/fatih/color v1.13.0 // indirect
github.com/fsnotify/fsnotify v1.5.4 // indirect
github.com/gogo/protobuf v1.3.2 // indirect
github.com/golang/protobuf v1.5.2 // indirect
github.com/google/go-cmp v0.5.8 // indirect
github.com/hashicorp/hcl v1.0.0 // indirect
github.com/inconshreveable/mousetrap v1.0.0 // indirect
github.com/magiconair/properties v1.8.6 // indirect
github.com/mattn/go-colorable v0.1.12 // indirect
github.com/mattn/go-isatty v0.0.14 // indirect
github.com/mitchellh/mapstructure v1.5.0 // indirect
github.com/nxadm/tail v1.4.8 // indirect
github.com/pelletier/go-toml v1.9.5 // indirect
github.com/pelletier/go-toml/v2 v2.0.1 // indirect
github.com/pkg/errors v0.9.1 // indirect
github.com/pmezard/go-difflib v1.0.0 // indirect
github.com/prometheus/client_model v0.2.0 // indirect
github.com/prometheus/common v0.26.0 // indirect
github.com/prometheus/procfs v0.6.0 // indirect
github.com/spf13/afero v1.8.2 // indirect
github.com/spf13/cast v1.5.0 // indirect
github.com/spf13/jwalterweatherman v1.1.0 // indirect
github.com/stretchr/objx v0.4.0 // indirect
github.com/subosito/gotenv v1.3.0 // indirect
golang.org/x/sys v0.0.0-20220715151400-c0bba94af5f8 // indirect
google.golang.org/protobuf v1.28.0 // indirect
gopkg.in/ini.v1 v1.66.4 // indirect
gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7 // indirect
gopkg.in/yaml.v2 v2.4.0 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
github.com/Microsoft/go-winio v0.4.17 // indirect
github.com/docker/docker-credential-helpers v0.6.1 // indirect
github.com/docker/go-units v0.4.0 // indirect
Expand Down

0 comments on commit e04a107

Please sign in to comment.