Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci(go): update to 2.0 #235

Merged
merged 6 commits into from
Sep 10, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/citools/go/go-fixer-go_fix
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ fi
main() {
printf "\nRunning go fix\n\n"

show_tool_versions_go
show_tool_versions_go_short

print_ruler

Expand Down
2 changes: 1 addition & 1 deletion .github/citools/go/go-lint-errcheck
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ declare -i retval=0
main() {
printf "\nRunning Go errcheck\n\n"

show_tool_versions_go
show_tool_versions_go_short

print_ruler

Expand Down
2 changes: 1 addition & 1 deletion .github/citools/go/go-lint-go-consistent
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ fi
main() {
printf "\nRunning Go go-consistent\n\n"

show_tool_versions_go
show_tool_versions_go_short

print_ruler

Expand Down
2 changes: 1 addition & 1 deletion .github/citools/go/go-lint-go_vet
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ fi
main() {
printf "\nRunning Go Vet\n\n"

show_tool_versions_go
show_tool_versions_go_short

print_ruler

Expand Down
2 changes: 1 addition & 1 deletion .github/citools/go/go-lint-gocritic
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ fi
main() {
printf "\nRunning Go gocritic\n\n"

show_tool_versions_go
show_tool_versions_go_short

print_ruler

Expand Down
2 changes: 1 addition & 1 deletion .github/citools/go/go-lint-gocyclo
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ fi
main() {
printf "\nRunning Go gocyclo\n\n"

show_tool_versions_go
show_tool_versions_go_short

print_ruler

Expand Down
2 changes: 1 addition & 1 deletion .github/citools/go/go-lint-golangci-lint
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ fi
main() {
printf "\nRunning GoLangCi-Lint\n\n"

show_tool_versions_go
show_tool_versions_go_short

print_ruler

Expand Down
2 changes: 1 addition & 1 deletion .github/citools/go/go-lint-gosec
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ fi
main() {
printf "\nRunning Go GoSec\n\n"

show_tool_versions_go
show_tool_versions_go_short

print_ruler

Expand Down
2 changes: 1 addition & 1 deletion .github/citools/go/go-lint-ineffassign
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ fi
main() {
printf "\nRunning Go ineffassign\n\n"

show_tool_versions_go
show_tool_versions_go_short

print_ruler

Expand Down
2 changes: 1 addition & 1 deletion .github/citools/go/go-lint-misspell
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ fi
main() {
printf "\nRunning Go misspell\n\n"

show_tool_versions_go
show_tool_versions_go_short

print_ruler

Expand Down
2 changes: 1 addition & 1 deletion .github/citools/go/go-lint-revive
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ fi
main() {
printf "\nRunning Go Lint Revive\n\n"

show_tool_versions_go
show_tool_versions_go_short

print_ruler

Expand Down
14 changes: 14 additions & 0 deletions .github/citools/go/go-setup-config
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,24 @@ main() {

print_ruler

printf "Adding paths to GITHUB_PATH...\n"
printf "%s\n" "/root/.golang/go/bin" | tee -a "${GITHUB_PATH}"
printf "%s\n" "/root/go/bin" | tee -a "${GITHUB_PATH}"

print_ruler

tree /root/.golang/go/bin

print_ruler

tree /root/go/bin

print_ruler

tail -n 1000 -v "${GITHUB_PATH}"

print_ruler

echo Exit code: "${retval}"
return "${retval}"
}
Expand Down
2 changes: 1 addition & 1 deletion .github/citools/go/go-test-cover
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ declare -i retval=0
main() {
printf "\nRunning Go Test & Coverage\n\n"

show_tool_versions_go
show_tool_versions_go_short

print_ruler

Expand Down
2 changes: 1 addition & 1 deletion .github/citools/go/go-test-cover-report
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ cover_annotate() {
main() {
printf "\nRunning Go Test, Coverage & Reports\n\n"

show_tool_versions_go
show_tool_versions_go_short

print_ruler

Expand Down
11 changes: 10 additions & 1 deletion .github/citools/includes/wrapper-library
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,15 @@ show_tool_versions_rust() {
printf "\n"
} # show_tool_versions_rust()

show_tool_versions_go_short() {
# md_code_tag text
printf "Go version:\n"
printf "\n"
go version | paste /dev/null -
# md_code_tag
printf "\n"
} # show_tool_versions_go_short()

show_tool_versions_go() {
# md_code_tag text
printf "Go version:\n"
Expand All @@ -93,7 +102,7 @@ show_tool_versions_go() {
printf "Installed Go packages:\n"
printf "\n"
# shellcheck disable=SC2012
ls ~/go/bin | paste /dev/null -
ls /root/go/bin | paste /dev/null -
# md_code_tag
printf "\n"

Expand Down
Loading