Skip to content

Commit f101d64

Browse files
authored
Merge pull request #146 from TheAlgorithms/golangci-lint.yml-Upgrade-go-and-Actionscclauss-patch-1
golangci-lint.yml: Upgrade go and Actions
2 parents ad01f9d + c3d04b6 commit f101d64

File tree

1 file changed

+16
-14
lines changed

1 file changed

+16
-14
lines changed

.github/workflows/golangci-lint.yml

Lines changed: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,19 @@ jobs:
55
golangci-lint:
66
runs-on: ubuntu-latest
77
steps:
8-
- uses: actions/setup-go@v1
9-
with:
10-
go-version: 1.13
11-
- uses: actions/checkout@v1
12-
- run: curl -sfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s v1.21.0
13-
- run: |
14-
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
8+
- uses: actions/checkout@v2
9+
- name: golangci-lint
10+
uses: golangci/golangci-lint-action@v1
11+
with:
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
14+
args: --issues-exit-code=0 # Someday we can remove this...
15+
- run: |
16+
go version ; golangci-lint --version
17+
# golangci-lint run --no-config || true
18+
- run: golangci-lint run --no-config ciphers strings
19+
- run: golangci-lint run --no-config data-structures || true
20+
- run: golangci-lint run --no-config dynamic-programming || true
21+
- run: golangci-lint run --no-config other || true
22+
- run: golangci-lint run --no-config searches || true
23+
- run: golangci-lint run --no-config sorts

0 commit comments

Comments
 (0)