Skip to content

Commit

Permalink
Bump Go version to 1.17
Browse files Browse the repository at this point in the history
Bump Go version to `1.17`.

Simplify GitHub Action build and test.

Update modules.
  • Loading branch information
HeavyWombat committed Nov 9, 2021
1 parent 5034b76 commit a9ce7c0
Show file tree
Hide file tree
Showing 4 changed files with 241 additions and 59 deletions.
49 changes: 13 additions & 36 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.16
go-version: 1.17.x

- name: Check out code into the Go module directory
uses: actions/checkout@v2
Expand All @@ -34,41 +34,18 @@ jobs:
- name: Install Tools
run: |
pushd "$(mktemp -d)"
go get github.com/gordonklaus/ineffassign
go get golang.org/x/lint/golint
go get github.com/client9/misspell/cmd/misspell
go get honnef.co/go/tools/cmd/staticcheck
go get github.com/onsi/ginkgo/ginkgo github.com/onsi/gomega/...
popd
- name: Verify Go Modules Setup
run: |
go mod verify
- name: Build Go Code
run: |
go build ./...
- name: Sanity Check (go vet)
run: |
go vet ./...
- name: Sanity Check (ineffassign)
run: |
ineffassign ./...
- name: Sanity Check (golint)
run: |
golint ./...
- name: Sanity Check (misspell)
run: |
find . -type f | xargs misspell -source=text -error
- name: Sanity Check (staticcheck)
run: |
staticcheck ./...
go install github.com/gordonklaus/ineffassign@latest
go install golang.org/x/lint/golint@latest
go install github.com/client9/misspell/cmd/misspell@latest
go install honnef.co/go/tools/cmd/staticcheck@latest
go install github.com/onsi/ginkgo/ginkgo@latest
- run: go build ./...
- run: go vet ./...
- run: ineffassign ./...
- run: golint ./...
- run: find . -type f | xargs misspell -source=text -error
- run: staticcheck ./...

- name: Run Go Unit Tests
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.16
go-version: 1.17.x

- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
Expand Down
88 changes: 76 additions & 12 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,24 +1,88 @@
module github.com/homeport/build-load

go 1.16
go 1.17

require (
github.com/golang-jwt/jwt/v4 v4.0.0
github.com/golang-jwt/jwt/v4 v4.1.0
github.com/gonvenience/bunt v1.3.2
github.com/gonvenience/neat v1.3.6
github.com/gonvenience/neat v1.3.7
github.com/gonvenience/text v1.0.6
github.com/gonvenience/wrap v1.1.0
github.com/lucasb-eyer/go-colorful v1.2.0
github.com/onsi/ginkgo v1.16.4
github.com/onsi/gomega v1.16.0
github.com/shipwright-io/build v0.5.2-0.20210830191632-04ff81c93dd5
github.com/onsi/ginkgo v1.16.5
github.com/onsi/gomega v1.17.0
github.com/shipwright-io/build v0.6.0
github.com/spf13/cobra v1.2.1
github.com/spf13/viper v1.8.1
github.com/tektoncd/pipeline v0.25.0
github.com/spf13/viper v1.9.0
github.com/tektoncd/pipeline v0.27.3
gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b
k8s.io/api v0.20.6
k8s.io/apimachinery v0.20.6
k8s.io/client-go v0.20.6
k8s.io/api v0.20.7
k8s.io/apimachinery v0.20.7
k8s.io/client-go v0.20.7
k8s.io/utils v0.0.0-20210111153108-fddb29f9d009
knative.dev/pkg v0.0.0-20210331065221-952fdd90dbb0
knative.dev/pkg v0.0.0-20210730172132-bb4aaf09c430
)

require (
github.com/PuerkitoBio/purell v1.1.1 // indirect
github.com/PuerkitoBio/urlesc v0.0.0-20170810143723-de5bf2ad4578 // indirect
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/emicklei/go-restful v2.15.0+incompatible // indirect
github.com/evanphx/json-patch/v5 v5.5.0 // indirect
github.com/fsnotify/fsnotify v1.5.1 // indirect
github.com/ghodss/yaml v1.0.0 // indirect
github.com/go-logr/logr v0.4.0 // indirect
github.com/go-openapi/jsonpointer v0.19.5 // indirect
github.com/go-openapi/jsonreference v0.19.5 // indirect
github.com/go-openapi/spec v0.20.2 // indirect
github.com/go-openapi/swag v0.19.15 // indirect
github.com/gogo/protobuf v1.3.2 // indirect
github.com/golang/protobuf v1.5.2 // indirect
github.com/gonvenience/term v1.0.1 // indirect
github.com/google/go-cmp v0.5.6 // indirect
github.com/google/go-containerregistry v0.6.0 // indirect
github.com/google/gofuzz v1.2.0 // indirect
github.com/googleapis/gnostic v0.5.3 // indirect
github.com/hashicorp/golang-lru v0.5.4 // indirect
github.com/hashicorp/hcl v1.0.0 // indirect
github.com/imdario/mergo v0.3.12 // indirect
github.com/inconshreveable/mousetrap v1.0.0 // indirect
github.com/josharian/intern v1.0.0 // indirect
github.com/json-iterator/go v1.1.11 // indirect
github.com/magiconair/properties v1.8.5 // indirect
github.com/mailru/easyjson v0.7.7 // indirect
github.com/mattn/go-ciede2000 v0.0.0-20170301095244-782e8c62fec3 // indirect
github.com/mattn/go-isatty v0.0.14 // indirect
github.com/mitchellh/go-ps v1.0.0 // indirect
github.com/mitchellh/mapstructure v1.4.2 // indirect
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
github.com/modern-go/reflect2 v1.0.1 // indirect
github.com/nxadm/tail v1.4.8 // indirect
github.com/pelletier/go-toml v1.9.4 // indirect
github.com/pkg/errors v0.9.1 // indirect
github.com/spf13/afero v1.6.0 // indirect
github.com/spf13/cast v1.4.1 // indirect
github.com/spf13/jwalterweatherman v1.1.0 // indirect
github.com/spf13/pflag v1.0.5 // indirect
github.com/subosito/gotenv v1.2.0 // indirect
golang.org/x/crypto v0.0.0-20210817164053-32db794688a5 // indirect
golang.org/x/net v0.0.0-20210917163549-3c21e5b27794 // indirect
golang.org/x/oauth2 v0.0.0-20210819190943-2bc19b11175f // indirect
golang.org/x/sys v0.0.0-20210917161153-d61c044b1678 // indirect
golang.org/x/term v0.0.0-20210916214954-140adaaadfaf // indirect
golang.org/x/text v0.3.7 // indirect
golang.org/x/time v0.0.0-20210220033141-f8bda1e9f3ba // indirect
gomodules.xyz/jsonpatch/v2 v2.2.0 // indirect
google.golang.org/appengine v1.6.7 // indirect
google.golang.org/protobuf v1.27.1 // indirect
gopkg.in/evanphx/json-patch.v4 v4.9.0 // indirect
gopkg.in/inf.v0 v0.9.1 // indirect
gopkg.in/ini.v1 v1.63.2 // indirect
gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7 // indirect
gopkg.in/yaml.v2 v2.4.0 // indirect
k8s.io/klog/v2 v2.5.0 // indirect
k8s.io/kube-openapi v0.0.0-20210113233702-8566a335510f // indirect
sigs.k8s.io/controller-runtime v0.6.1 // indirect
sigs.k8s.io/structured-merge-diff/v4 v4.0.3 // indirect
sigs.k8s.io/yaml v1.2.0 // indirect
)
Loading

0 comments on commit a9ce7c0

Please sign in to comment.