* Update CI Go version to 1.20/1.19 * Update `golangci-lint` to v1.51.2 * Update coverage collection to use new Go 1.20 tools * Update coverage job to only run on latest Go version Fixes #367
25 lines
837 B
Bash
Executable File
25 lines
837 B
Bash
Executable File
#!/bin/bash -ex
|
|
|
|
# Standalone version of the assembly checks in go vet.
|
|
go install ./internal/cmd/asmvet
|
|
|
|
# golangci-lint for linting
|
|
golangci_lint_version='v1.51.2'
|
|
golangci_install_script="https://raw.githubusercontent.com/golangci/golangci-lint/${golangci_lint_version}/install.sh"
|
|
curl -sfL "${golangci_install_script}" | sh -s -- -b "$(go env GOPATH)/bin" "${golangci_lint_version}"
|
|
|
|
# embedmd required for documentation generation
|
|
go install github.com/campoy/embedmd@v1.0.0
|
|
|
|
# asmfmt for enforcing assembly style
|
|
go install github.com/klauspost/asmfmt/cmd/asmfmt@v1.3.2
|
|
|
|
# goimports for import grouping.
|
|
go install golang.org/x/tools/cmd/goimports@v0.1.10
|
|
|
|
# gofumpt for stricter formatting.
|
|
go install mvdan.cc/gofumpt@v0.3.1
|
|
|
|
# yamlfmt for yaml formatting.
|
|
go install github.com/gechr/yamlfmt@v0.0.0-20220216093356-e9288cd48d12
|