Skip to content

Commit

Permalink
Include builds for Go 1.18 in CI matrixes (ko-build#652)
Browse files Browse the repository at this point in the history
  • Loading branch information
imjasonh authored Mar 19, 2022
1 parent aafd3e8 commit bdc2d9f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 13 deletions.
13 changes: 1 addition & 12 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,18 +18,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-go@v2
with:
# TODO: when 1.18 is released, just make this
# ${{ matrix.go-version }} and delete the next step.
go-version: '1.17.x'

# Use the installed Go version to download and install the latest 1.18
# release candidate and replace our existing go with that one.
- if: ${{ matrix.go-version == '1.18.x' }}
run: |
go install golang.org/dl/go1.18rc1@latest
go1.18rc1 download
cp $(which go1.18rc1) $(which go)
go version
go-version: ${{ matrix.go-version }}

- run: |
go build ./...
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/modules-integration-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
name: Module Tests
strategy:
matrix:
go-version: [1.16.x, 1.17.x]
go-version: [1.16.x, 1.17.x, 1.18.x]
runs-on: 'ubuntu-latest'
steps:
- uses: actions/setup-go@v2
Expand Down

0 comments on commit bdc2d9f

Please sign in to comment.