-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Update: Support golang 1.19 * Update: remove gosec from default for now * Fixed: Update unit test with newer golang
- Loading branch information
Eric Powers
authored
Aug 18, 2022
1 parent
3409e27
commit d8acfa4
Showing
4 changed files
with
23 additions
and
10 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,8 +19,9 @@ jobs: | |
fail-fast: false | ||
matrix: | ||
go: | ||
- 1.15 | ||
- 1.16 | ||
- 1.17 | ||
- 1.18 | ||
- 1.19 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
|
@@ -31,11 +32,22 @@ jobs: | |
- name: setup | ||
run: | | ||
go version | ||
go get github.com/golangci/golangci-lint/cmd/golangci-lint@latest | ||
go get github.com/securego/gosec/cmd/gosec | ||
#go get golang.org/x/tools/cmd/cover | ||
go get github.com/axw/gocov/gocov | ||
go get github.com/AlekSi/gocov-xml | ||
go install github.com/securego/gosec/cmd/gosec@latest | ||
#go install golang.org/x/tools/cmd/cover@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 | ||
run: | | ||
|
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
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