Skip to content

Commit

Permalink
GitHub+lint: reduce linter memory usage
Browse files Browse the repository at this point in the history
To reduce the likelyhood of the linter OOMing on the GitHub runner, we
exclude any generated code from being inspected and also tune the golang
garbage collector to be a bit more agressive.
  • Loading branch information
guggero committed Jul 27, 2021
1 parent dd749fe commit c8df606
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ jobs:
go-version: '${{ env.GO_VERSION }}'

- name: lint
run: make lint
run: GOGC=50 make lint

########################
# cross compilation
Expand Down
4 changes: 3 additions & 1 deletion .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,11 @@ run:
# timeout for analysis
deadline: 10m

# Skip autogenerated files for mobile.
# Skip autogenerated files for mobile and gRPC.
skip-files:
- "mobile\\/.*generated\\.go"
- "\\.pb\\.go$"
- "\\.pb\\.gw\\.go$"

skip-dirs:
- channeldb/migration_01_to_11
Expand Down

0 comments on commit c8df606

Please sign in to comment.