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 10, 2021
1 parent 7de5a5a commit f0538e4
Show file tree
Hide file tree
Showing 6 changed files with 404 additions and 177 deletions.
20 changes: 0 additions & 20 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,23 +6,3 @@ updates:
interval: daily
open-pull-requests-limit: 10
target-branch: develop
ignore:
- dependency-name: github.com/onsi/ginkgo
versions:
- 1.15.1
- 1.15.2
- 1.16.0
- 1.16.1
- dependency-name: github.com/gonvenience/neat
versions:
- 1.3.6
- dependency-name: github.com/gonvenience/ytbx
versions:
- 1.3.1
- 1.4.0
- dependency-name: github.com/gonvenience/bunt
versions:
- 1.3.2
- dependency-name: github.com/spf13/cobra
versions:
- 1.1.2
49 changes: 13 additions & 36 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,48 +21,25 @@ 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

- 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
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ There are different ways to get `yft`. You are free to pick the one that makes t

We are happy to have other people contributing to the project. If you decide to do that, here's how to:
- get Go (`yft` requires Go version 1.16 or greater)
- get Go (`yft` requires Go version 1.17 or greater)
- fork the project
- create a new branch
- make your changes
Expand Down Expand Up @@ -107,7 +107,7 @@ docker run \
--rm \
--volume $GOPATH/src/github.com/homeport/yft:/go/src/github.com/homeport/yft \
--workdir /go/src/github.com/homeport/yft \
golang:1.16 /bin/bash
golang:1.17 /bin/bash
```
## License
Expand Down
34 changes: 28 additions & 6 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,14 +1,36 @@
module github.com/homeport/yft

go 1.16
go 1.17

require (
github.com/gonvenience/bunt v1.3.2
github.com/gonvenience/neat v1.3.6
github.com/gonvenience/neat v1.3.7
github.com/gonvenience/wrap v1.1.0
github.com/gonvenience/ytbx v1.4.0
github.com/onsi/ginkgo v1.16.1
github.com/onsi/gomega v1.11.0
github.com/spf13/cobra v1.1.3
github.com/gonvenience/ytbx v1.4.2
github.com/onsi/ginkgo v1.16.4
github.com/onsi/gomega v1.16.0
github.com/spf13/cobra v1.2.1
gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b
)

require (
github.com/BurntSushi/toml v0.3.1 // indirect
github.com/fsnotify/fsnotify v1.5.1 // indirect
github.com/gonvenience/term v1.0.1 // indirect
github.com/gonvenience/text v1.0.6 // indirect
github.com/inconshreveable/mousetrap v1.0.0 // indirect
github.com/lucasb-eyer/go-colorful v1.2.0 // 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/nxadm/tail v1.4.8 // indirect
github.com/spf13/pflag v1.0.5 // indirect
github.com/virtuald/go-ordered-json v0.0.0-20170621173500-b18e6e673d74 // indirect
golang.org/x/net v0.0.0-20210917163549-3c21e5b27794 // indirect
golang.org/x/sync v0.0.0-20210220032951-036812b2e83c // 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
gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7 // indirect
gopkg.in/yaml.v2 v2.4.0 // indirect
)
Loading

0 comments on commit f0538e4

Please sign in to comment.