Skip to content

Commit

Permalink
Move golangci-lint to GH Actions
Browse files Browse the repository at this point in the history
Signed-off-by: David Son <[email protected]>
  • Loading branch information
sondavidb committed Mar 27, 2024
1 parent 373be7f commit 396fd87
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
13 changes: 12 additions & 1 deletion .github/workflows/prebuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ on:

env:
GO_VERSION: '1.21.8'
GOLANGCI_LINT_VERSION: '1.56.2'

jobs:
check:
Expand All @@ -28,8 +29,18 @@ jobs:
- run: ./scripts/install-check-tools.sh
- run: ./scripts/check-ltag.sh
- run: ./scripts/check-dco.sh
- run: ./scripts/check-lint.sh
- run: PATH=$PATH:$(pwd) ./scripts/check-flatc.sh

lint:
strategy:
matrix:
working_dir: ['', 'cmd']
runs-on: ubuntu-20.04
steps:
- uses: golangci/golangci-lint-action@v4
with:
version: v${{ env.GOLANGCI_LINT_VERSION }}
working-directory: ${{ matrix.working_dir }}

shellcheck:
runs-on: ubuntu-20.04
Expand Down
1 change: 0 additions & 1 deletion scripts/install-check-tools.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,5 @@
echo "Install soci check tools"
set -eux -o pipefail

curl -sfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b "$(go env GOPATH)/bin" v1.56.2
go install github.com/kunalkushwaha/[email protected]
go install github.com/vbatts/[email protected]

0 comments on commit 396fd87

Please sign in to comment.