Skip to content

Commit 414c246

Browse files
authored
uses: golangci/golangci-lint-action@v1
1 parent 9634690 commit 414c246

File tree

1 file changed

+11
-10
lines changed

1 file changed

+11
-10
lines changed

.github/workflows/golangci-lint.yml

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,17 @@ jobs:
66
runs-on: ubuntu-latest
77
steps:
88
- uses: actions/checkout@v2
9-
- uses: actions/setup-go@v2
9+
- name: golangci-lint
10+
uses: golangci/golangci-lint-action@v1
1011
with:
11-
go-version: 1.14
12-
- run: curl -sfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s v1.21.0
12+
# Required: the version of golangci-lint is required and must be specified without patch version: we always use the latest patch version.
13+
version: v1.27
1314
- run: |
1415
go version ; ./bin/golangci-lint --version
15-
./bin/golangci-lint run --no-config || true
16-
- run: ./bin/golangci-lint run --no-config ciphers strings
17-
- run: ./bin/golangci-lint run --no-config data-structures || true
18-
- run: ./bin/golangci-lint run --no-config dynamic-programming || true
19-
- run: ./bin/golangci-lint run --no-config other || true
20-
- run: ./bin/golangci-lint run --no-config searches || true
21-
- run: ./bin/golangci-lint run --no-config sorts
16+
golangci-lint run --no-config || true
17+
- run: golangci-lint run --no-config ciphers strings
18+
- run: golangci-lint run --no-config data-structures || true
19+
- run: golangci-lint run --no-config dynamic-programming || true
20+
- run: golangci-lint run --no-config other || true
21+
- run: golangci-lint run --no-config searches || true
22+
- run: golangci-lint run --no-config sorts

0 commit comments

Comments
 (0)