Skip to content

Commit

Permalink
Merge branch 'main' into deprecate-bridge-cmd-group
Browse files Browse the repository at this point in the history
  • Loading branch information
felipemadero committed Dec 10, 2024
2 parents 60d3851 + 5897809 commit 39c527a
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 5 deletions.
6 changes: 1 addition & 5 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,7 @@ jobs:
go-version-file: 'go.mod'

- name: Lint Golang
uses: golangci/golangci-lint-action@v6
with:
version: v1.56.2
working-directory: .
args: --timeout 5m
run: ./scripts/lint.sh

- name: Check License
run: |
Expand Down
17 changes: 17 additions & 0 deletions scripts/lint.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#!/usr/bin/env bash
# Copyright (C) 2023, Ava Labs, Inc. All rights reserved.
# See the file LICENSE for licensing terms.

set -o errexit
set -o nounset
set -o pipefail

CLI_PATH=$(
cd "$(dirname "${BASH_SOURCE[0]}")"
cd .. && pwd
)

GOLANGCI_LINT_VERSION=v1.56.2

go install -v github.com/golangci/golangci-lint/cmd/golangci-lint@${GOLANGCI_LINT_VERSION}
golangci-lint run --config=$CLI_PATH/.golangci.yml ./... --timeout 5m

0 comments on commit 39c527a

Please sign in to comment.