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:
Oliver Gugger 2021-07-27 13:00:00 +02:00
parent dd749fe580
commit c8df606427
No known key found for this signature in database
GPG key ID: 8E4256593F177720
2 changed files with 4 additions and 2 deletions

View file

@ -131,7 +131,7 @@ jobs:
go-version: '${{ env.GO_VERSION }}' go-version: '${{ env.GO_VERSION }}'
- name: lint - name: lint
run: make lint run: GOGC=50 make lint
######################## ########################
# cross compilation # cross compilation

View file

@ -2,9 +2,11 @@ run:
# timeout for analysis # timeout for analysis
deadline: 10m deadline: 10m
# Skip autogenerated files for mobile. # Skip autogenerated files for mobile and gRPC.
skip-files: skip-files:
- "mobile\\/.*generated\\.go" - "mobile\\/.*generated\\.go"
- "\\.pb\\.go$"
- "\\.pb\\.gw\\.go$"
skip-dirs: skip-dirs:
- channeldb/migration_01_to_11 - channeldb/migration_01_to_11