Skip to content

Commit

Permalink
ci: bump Go versions
Browse files Browse the repository at this point in the history
  • Loading branch information
twpayne authored and mvdan committed Jan 18, 2023
1 parent 89b23b0 commit e167c88
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
15 changes: 10 additions & 5 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,23 +11,28 @@ jobs:
strategy:
fail-fast: false
matrix:
go-version: [1.17.x, 1.18.x]
os: [ubuntu-latest, macos-latest, windows-latest]
go-version:
- '1.18.x'
- '1.19.x'
os:
- ubuntu-latest
- macos-latest
- windows-latest
runs-on: ${{ matrix.os }}
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Install Go
uses: actions/setup-go@v3
with:
go-version: ${{ matrix.go-version }}
- name: Checkout code
uses: actions/checkout@v3
- name: Test
run: |
go test ./...
go test -race ./...
- name: Tidy
if: matrix.os == 'ubuntu-latest' # no need to do this everywhere
if: matrix.os == 'ubuntu-latest' && matrix.go-version == '1.19.x' # no need to do this everywhere
run: |
go mod tidy
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module github.com/rogpeppe/go-internal

go 1.17
go 1.18

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

0 comments on commit e167c88

Please sign in to comment.