Skip to content

Commit cc90b9b

Browse files
sondavidbhenry118
authored andcommitted
Move golangci-lint to GH Actions
Signed-off-by: David Son <[email protected]>
1 parent a85ea6c commit cc90b9b

File tree

3 files changed

+13
-31
lines changed

3 files changed

+13
-31
lines changed

.github/workflows/prebuild.yml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ on:
88

99
env:
1010
GO_VERSION: '1.21.8'
11+
GOLANGCI_LINT_VERSION: '1.56.2'
1112

1213
jobs:
1314
check:
@@ -28,8 +29,19 @@ jobs:
2829
- run: ./scripts/install-check-tools.sh
2930
- run: ./scripts/check-ltag.sh
3031
- run: ./scripts/check-dco.sh
31-
- run: ./scripts/check-lint.sh
3232
- run: PATH=$PATH:$(pwd) ./scripts/check-flatc.sh
33+
34+
lint:
35+
strategy:
36+
matrix:
37+
working_dir: ['', 'cmd']
38+
runs-on: ubuntu-20.04
39+
steps:
40+
- uses: actions/checkout@v4
41+
- uses: golangci/golangci-lint-action@v4
42+
with:
43+
version: v${{ env.GOLANGCI_LINT_VERSION }}
44+
working-directory: ${{ matrix.working_dir }}
3345

3446
shellcheck:
3547
runs-on: ubuntu-20.04

scripts/check-lint.sh

Lines changed: 0 additions & 29 deletions
This file was deleted.

scripts/install-check-tools.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,5 @@
1717
echo "Install soci check tools"
1818
set -eux -o pipefail
1919

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

0 commit comments

Comments
 (0)