forked from TheAlgorithms/Go
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
GitHub Action to run golangci-lint on all pull requests (TheAlgorithm…
…s#95) * Create go.yml * go get -v -t -d ./... || true * Create golangci-lint.yml * Install golangci-lint into ./bin/ * ./bin/golangci-lint run * ./bin/golangci-lint run --no-config * latest * v1.21.0 * go version * with: go-version: 1.13 * Update golangci-lint.yml * Delete go.yml * Update golangci-lint.yml * Update golangci-lint.yml * var positions []int = naivePatternSearch(text, pattern) * Update golangci-lint.yml * golangci-lint run --no-config ciphers strings
- Loading branch information
Showing
2 changed files
with
22 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# https://github.com/golangci/golangci-lint | ||
name: golangci-lint | ||
on: [push, pull_request] | ||
jobs: | ||
golangci-lint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/setup-go@v1 | ||
with: | ||
go-version: 1.13 | ||
- uses: actions/checkout@v1 | ||
- run: curl -sfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s v1.21.0 | ||
- run: | | ||
go version ; ./bin/golangci-lint --version | ||
./bin/golangci-lint run --no-config || true | ||
- run: ./bin/golangci-lint run --no-config ciphers strings | ||
- run: ./bin/golangci-lint run --no-config data-structures || true | ||
- run: ./bin/golangci-lint run --no-config dynamic-programming || true | ||
- run: ./bin/golangci-lint run --no-config other || true | ||
- run: ./bin/golangci-lint run --no-config searches || true | ||
- run: ./bin/golangci-lint run --no-config sorts || true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters