Skip to content

Commit e167c88

Browse files
twpaynemvdan
authored andcommitted
ci: bump Go versions
1 parent 89b23b0 commit e167c88

File tree

2 files changed

+11
-6
lines changed

2 files changed

+11
-6
lines changed

.github/workflows/test.yml

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,23 +11,28 @@ jobs:
1111
strategy:
1212
fail-fast: false
1313
matrix:
14-
go-version: [1.17.x, 1.18.x]
15-
os: [ubuntu-latest, macos-latest, windows-latest]
14+
go-version:
15+
- '1.18.x'
16+
- '1.19.x'
17+
os:
18+
- ubuntu-latest
19+
- macos-latest
20+
- windows-latest
1621
runs-on: ${{ matrix.os }}
1722
steps:
23+
- name: Checkout code
24+
uses: actions/checkout@v3
1825
- name: Install Go
1926
uses: actions/setup-go@v3
2027
with:
2128
go-version: ${{ matrix.go-version }}
22-
- name: Checkout code
23-
uses: actions/checkout@v3
2429
- name: Test
2530
run: |
2631
go test ./...
2732
go test -race ./...
2833
2934
- name: Tidy
30-
if: matrix.os == 'ubuntu-latest' # no need to do this everywhere
35+
if: matrix.os == 'ubuntu-latest' && matrix.go-version == '1.19.x' # no need to do this everywhere
3136
run: |
3237
go mod tidy
3338

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.17
3+
go 1.18
44

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

0 commit comments

Comments
 (0)