Skip to content

Commit

Permalink
mod: require Go 1.20 onwards
Browse files Browse the repository at this point in the history
  • Loading branch information
henvic committed Nov 2, 2023
1 parent 45a60f1 commit 90010f0
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
go: [1.20.x, 1.19.x] # when updating versions, update it below too.
go: [1.21.x, 1.20.x] # when updating versions, update it below too.
runs-on: ${{ matrix.os }}
name: Test
steps:
Expand All @@ -35,11 +35,11 @@ jobs:

- name: Test
# TODO(henvic): Skip generating code coverage when not sending it to Coveralls to speed up testing.
continue-on-error: ${{ matrix.os != 'ubuntu-latest' || matrix.go != '1.20.x' }}
continue-on-error: ${{ matrix.os != 'ubuntu-latest' || matrix.go != '1.21.x' }}
run: go test -race -covermode atomic -coverprofile=profile.cov ./...

- name: Code coverage
if: ${{ matrix.os == 'ubuntu-latest' && matrix.go == '1.20.x' }}
if: ${{ matrix.os == 'ubuntu-latest' && matrix.go == '1.21.x' }}
uses: shogo82148/actions-goveralls@v1
with:
path-to-profile: profile.cov
2 changes: 1 addition & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
- name: Set up Go 1.x
uses: actions/setup-go@v2
with:
go-version: "1.20.x"
go-version: "1.21.x"

- name: Check out code
uses: actions/checkout@v2
Expand Down
4 changes: 2 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module github.com/henvic/httpretty

go 1.16
go 1.20

require golang.org/x/tools v0.1.10
require golang.org/x/tools v0.14.0
2 changes: 2 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGm
golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
golang.org/x/tools v0.1.10 h1:QjFRCZxdOhBJ/UNgnBZLbNV13DlbnK0quyivTnXJM20=
golang.org/x/tools v0.1.10/go.mod h1:Uh6Zz+xoGYZom868N8YTex3t7RhtHDBrE8Gzo9bV56E=
golang.org/x/tools v0.14.0 h1:jvNa2pY0M4r62jkRQ6RwEZZyPcymeL9XZMLBbV7U2nc=
golang.org/x/tools v0.14.0/go.mod h1:uYBEerGOWcJyEORxN+Ek8+TT266gXkNlHdJBwexUsBg=
golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=

0 comments on commit 90010f0

Please sign in to comment.