Skip to content

Commit 40fd3d2

Browse files
authored
Re-recreate #146 (#148)
* Re-recreate #146 #146 Do not merge if tests are failing. * working-directory: sorts * Set $PATH * run: set-env PATH= * run: echo ::set-env name=PATH:: * Update golangci-lint.yml * Update golangci-lint.yml * Update golangci-lint.yml * Subdirectories * Update golangci-lint.yml
1 parent 0c4309e commit 40fd3d2

File tree

1 file changed

+27
-14
lines changed

1 file changed

+27
-14
lines changed

.github/workflows/golangci-lint.yml

Lines changed: 27 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,31 @@ on: [push, pull_request]
44
jobs:
55
golangci-lint:
66
runs-on: ubuntu-latest
7+
strategy:
8+
fail-fast: false
79
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
10+
- uses: actions/checkout@v2
11+
- name: golangci-lint
12+
uses: golangci/golangci-lint-action@v1
13+
with:
14+
# Required: the version of golangci-lint is required and must be specified without patch version: we always use the latest patch version.
15+
version: v1.27
16+
working-directory: sorts
17+
args: --issues-exit-code=0 # Hopefully someday we can remove this...
18+
# Only show new issues if this is a pull request...
19+
# only-new-issues: true
20+
- run: echo "::set-env name=PATH::/home/runner/golangci-lint-1.27.0-linux-amd64:$PATH"
21+
- run: go version ; golangci-lint --version # Fix the following and remove || true
22+
- run: golangci-lint run --no-config ciphers || true
23+
- run: golangci-lint run --no-config data-structures/binary-tree || true
24+
- run: golangci-lint run --no-config data-structures/dynamic-array || true
25+
- run: golangci-lint run --no-config data-structures/hash-map || true
26+
- run: golangci-lint run --no-config data-structures/linked-list || true
27+
- run: golangci-lint run --no-config data-structures/trie || true
28+
- run: golangci-lint run --no-config dynamic-programming || true
29+
- run: golangci-lint run --no-config other || true
30+
- run: golangci-lint run --no-config searches || true
31+
- run: golangci-lint run --no-config sorts
32+
- run: golangci-lint run --no-config strings
33+
- run: golangci-lint run --no-config "strings/multiple string matching" || true
34+
# - run: golangci-lint run --no-config "strings/single string matching" || true

0 commit comments

Comments
 (0)