Skip to content

Commit a332c80

Browse files
committed
Update linter ci
1 parent 91d808d commit a332c80

File tree

1 file changed

+7
-14
lines changed

1 file changed

+7
-14
lines changed

.github/workflows/ci.yaml

Lines changed: 7 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -21,22 +21,15 @@ jobs:
2121
name: Linter
2222
runs-on: ubuntu-latest
2323
steps:
24-
- name: Checkout source code
25-
uses: actions/checkout@v2
26-
- name: Setup Go
27-
uses: actions/setup-go@v2
24+
- uses: actions/checkout@v3
25+
- uses: actions/setup-go@v4
2826
with:
2927
go-version: '1.21'
30-
- name: Install golangci-lint
31-
run: |
32-
curl -sSLO https://github.com/golangci/golangci-lint/releases/download/v$GOLANGCI_LINT_VERSION/golangci-lint-$GOLANGCI_LINT_VERSION-linux-amd64.tar.gz
33-
tar -xf golangci-lint-$GOLANGCI_LINT_VERSION-linux-amd64.tar.gz
34-
sudo mv golangci-lint-$GOLANGCI_LINT_VERSION-linux-amd64/golangci-lint /usr/local/bin/golangci-lint
35-
rm -rf golangci-lint-$GOLANGCI_LINT_VERSION-linux-amd64*
36-
env:
37-
GOLANGCI_LINT_VERSION: '1.50.1'
38-
- name: Run Lint
39-
run: golangci-lint run
28+
cache: false
29+
- name: golangci-lint
30+
uses: golangci/golangci-lint-action@v3
31+
with:
32+
version: v1.51
4033

4134
build:
4235
name: build

0 commit comments

Comments
 (0)