-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update: Add golang v1.20 and v1.21 to build (#5)
* Update: Add golang v1.20 and v1.21 to build * Update: Only run golang v1.20 and v1.21
- Loading branch information
Eric Powers
authored
Sep 18, 2023
1 parent
ed25683
commit 797aa23
Showing
3 changed files
with
8 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,13 +19,12 @@ jobs: | |
fail-fast: false | ||
matrix: | ||
go: | ||
- 1.17 | ||
- 1.18 | ||
- 1.19 | ||
- "1.20" | ||
- "1.21" | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/checkout@v3 | ||
|
||
- uses: actions/setup-go@v2 | ||
- uses: actions/setup-go@v4 | ||
with: | ||
go-version: ${{ matrix.go }} | ||
|
||
|
@@ -35,17 +34,6 @@ jobs: | |
go install github.com/securego/gosec/cmd/gosec@latest | ||
go install github.com/axw/gocov/gocov@master | ||
go install github.com/AlekSi/gocov-xml@latest | ||
- name: setup-for-older-go | ||
if: ${{ matrix.go <= 1.17 }} | ||
run: | | ||
# stay on an older version of golangci-lint which still builds against 1.17 | ||
# This is due to the introduction of generics. | ||
go install github.com/golangci/golangci-lint/cmd/[email protected] | ||
- name: setup-for-newer-go | ||
if: ${{ matrix.go > 1.17 }} | ||
run: | | ||
go install github.com/golangci/golangci-lint/cmd/golangci-lint@latest | ||
- name: build | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters