5904a0365e
* Add issues type filter * Add e2e test * Update e2e/e2e_test.go Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Add lint script and update golangci config * Add lint script * Install if not installed * Pass lint config * Use action and rename workflow * Back to reparate config * Migrate config to v2 * Update config * Lint code --------- Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
15 lines
315 B
Plaintext
Executable File
15 lines
315 B
Plaintext
Executable File
set -eu
|
|
|
|
# first run go fmt
|
|
gofmt -s -w .
|
|
|
|
BINDIR="$(git rev-parse --show-toplevel)"/bin
|
|
BINARY=$BINDIR/golangci-lint
|
|
GOLANGCI_LINT_VERSION=v2.2.1
|
|
|
|
|
|
if [ ! -f "$BINARY" ]; then
|
|
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s "$GOLANGCI_LINT_VERSION"
|
|
fi
|
|
|
|
$BINARY run |