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 committed 2021-07-27 13:09:59 +02:00
1 parent dd749fe580
commit c8df606427
2 files changed
+4 -2

No files matched your search

+1 -1
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
+3 -1
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