Skip to content

Commit

Permalink
Run golangci-lint on the entire codebase (TheAlgorithms#267)
Browse files Browse the repository at this point in the history
* 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
cclauss authored Feb 18, 2021
1 parent 7ea2964 commit 4af3545
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 53 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/golang_lint_and_test.yml
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)
40 changes: 0 additions & 40 deletions .github/workflows/golangci-lint.yml

This file was deleted.

13 changes: 0 additions & 13 deletions .github/workflows/golangtests.yml

This file was deleted.

0 comments on commit 4af3545

Please sign in to comment.