mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-02-20 13:34:32 +01:00
GitHub+lint: reduce linter memory usage
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.
This commit is contained in:
parent
dd749fe580
commit
c8df606427
2 changed files with 4 additions and 2 deletions
2
.github/workflows/main.yml
vendored
2
.github/workflows/main.yml
vendored
|
@ -131,7 +131,7 @@ jobs:
|
|||
go-version: '${{ env.GO_VERSION }}'
|
||||
|
||||
- name: lint
|
||||
run: make lint
|
||||
run: GOGC=50 make lint
|
||||
|
||||
########################
|
||||
# cross compilation
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue