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.
Run golangci-lint on the entire codebase (TheAlgorithms#267)
* DRAFT: Run golangci-lint on the entire codebase * shopt -s globstar && golangci-lint run --no-config **/*.go * || true * Upgrade to golangci-lint v2.4 * Upgrade golangci-lint to v1.37 * Remove all the clutter * golang_lint_and_test in a single GitHub Action * Delete golangci-lint.yml
- Loading branch information
Showing
3 changed files
with
17 additions
and
53 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,17 @@ | ||
# https://github.com/golangci/golangci-lint | ||
name: golang_lint_and_test | ||
on: [push, pull_request] | ||
jobs: | ||
golang_lint_and_test: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-go@v2 | ||
- run: go version | ||
- uses: golangci/golangci-lint-action@v2 | ||
with: | ||
# Required: the version of golangci-lint is required and must be specified without patch version: we always use the latest patch version. | ||
version: v1.37 | ||
- run: go test $(go list ./... | grep -v /sbom | grep -v /rsa) |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.