-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #19 from SolaceDev/dev
Release v1.6.1
- Loading branch information
Showing
7 changed files
with
194 additions
and
88 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 |
---|---|---|
|
@@ -42,7 +42,7 @@ jobs: | |
- name: Setup Go environment | ||
uses: actions/[email protected] | ||
with: | ||
go-version: '1.21' | ||
go-version: '1.22' | ||
check-latest: true | ||
- name: Check Go Version | ||
run: go version | ||
|
@@ -66,6 +66,29 @@ jobs: | |
echo "$OUTPUT" | ||
exit 1 | ||
fi | ||
- name: Runs go vet | ||
if: ${{ success() }} | ||
run: | | ||
OUTPUT=$(go vet ./... 2>&1) | ||
if [ ! -z "$OUTPUT" ]; then | ||
echo "go vet failed on the following:" | ||
echo "$OUTPUT" | ||
exit 1 | ||
fi | ||
- name: Runs staticcheck | ||
if: ${{ success() }} | ||
run: | | ||
# use pinned version of the tool but check if this needs an update on go version bump | ||
go install honnef.co/go/tools/cmd/[email protected] | ||
OUTPUT=$(staticcheck --checks=all ./...) | ||
if [ ! -z "$OUTPUT" ]; then | ||
echo "staticcheck failed on the following:" | ||
echo "$OUTPUT" | ||
exit 1 | ||
fi | ||
- name: Runs unit tests | ||
if: ${{ success() }} | ||
run: go test -coverprofile ./unitcoverage.out ./... | ||
|
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
Oops, something went wrong.