Skip to content

Commit 3b43157

Browse files
authored
drop Go 1.16, add Go 1.18 (#158)
While here, bump gotip and the action versions.
1 parent 009359f commit 3b43157

File tree

2 files changed

+7
-8
lines changed

2 files changed

+7
-8
lines changed

.github/workflows/test.yml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,16 @@ jobs:
1111
strategy:
1212
fail-fast: false
1313
matrix:
14-
go-version: [1.16.x, 1.17.x]
14+
go-version: [1.17.x, 1.18.x]
1515
os: [ubuntu-latest, macos-latest, windows-latest]
1616
runs-on: ${{ matrix.os }}
1717
steps:
1818
- name: Install Go
19-
uses: actions/setup-go@v2
19+
uses: actions/setup-go@v3
2020
with:
21-
stable: false
2221
go-version: ${{ matrix.go-version }}
2322
- name: Checkout code
24-
uses: actions/checkout@v2
23+
uses: actions/checkout@v3
2524
- name: Test
2625
run: |
2726
go test ./...
@@ -41,22 +40,22 @@ jobs:
4140
steps:
4241
- name: Install Go
4342
env:
44-
GO_COMMIT: d032b2b2c8235ef25275405f6655866f2c81661d # 2021-10-12
43+
GO_COMMIT: 2cfbef438049fd4c3f73d1562773ad1f93900897 # 2022-06-09
4544
run: |
4645
cd $HOME
4746
mkdir $HOME/gotip
4847
cd $HOME/gotip
4948
5049
wget -O gotip.tar.gz https://go.googlesource.com/go/+archive/${GO_COMMIT}.tar.gz
5150
tar -xf gotip.tar.gz
52-
echo "devel go1.18-${GO_COMMIT}" >VERSION
51+
echo "devel go1.19-${GO_COMMIT}" >VERSION
5352
5453
cd src
5554
./make.bash
5655
echo "GOROOT=$HOME/gotip" >>$GITHUB_ENV
5756
echo "$HOME/gotip/bin" >>$GITHUB_PATH
5857
- name: Checkout code
59-
uses: actions/checkout@v2
58+
uses: actions/checkout@v3
6059
- name: Test
6160
run: |
6261
go version

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
module github.com/rogpeppe/go-internal
22

3-
go 1.16
3+
go 1.17
44

55
require github.com/pkg/diff v0.0.0-20210226163009-20ebb0f2a09e

0 commit comments

Comments
 (0)