Skip to content

Commit 4af3545

Browse files
authored
Run golangci-lint on the entire codebase (#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
1 parent 7ea2964 commit 4af3545

File tree

3 files changed

+17
-53
lines changed

3 files changed

+17
-53
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# https://github.com/golangci/golangci-lint
2+
name: golang_lint_and_test
3+
on: [push, pull_request]
4+
jobs:
5+
golang_lint_and_test:
6+
runs-on: ubuntu-latest
7+
strategy:
8+
fail-fast: false
9+
steps:
10+
- uses: actions/checkout@v2
11+
- uses: actions/setup-go@v2
12+
- run: go version
13+
- uses: golangci/golangci-lint-action@v2
14+
with:
15+
# Required: the version of golangci-lint is required and must be specified without patch version: we always use the latest patch version.
16+
version: v1.37
17+
- run: go test $(go list ./... | grep -v /sbom | grep -v /rsa)

.github/workflows/golangci-lint.yml

Lines changed: 0 additions & 40 deletions
This file was deleted.

.github/workflows/golangtests.yml

Lines changed: 0 additions & 13 deletions
This file was deleted.

0 commit comments

Comments
 (0)