Skip to content
6 changes: 5 additions & 1 deletion .github/workflows/golangci-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ on:
pull_request:
paths:
- tencentcloud/**
- .github/**
- .golangci.yml

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
Expand All @@ -29,11 +31,13 @@ jobs:
- uses: actions/setup-go@v3
with:
go-version-file: .go-version
cache: false
cache: true

# Runs a set of commands using the runners shell
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
version: v1.45.2
working-directory: ./tencentcloud
args: --new-from-rev=master -v
#args: --enable-all --max-same-issues=0 --max-issues-per-linter=0 --new-from-rev=master -v
7 changes: 6 additions & 1 deletion .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,9 @@ linters-settings:

run:
modules-download-mode: vendor
timeout: 10m
timeout: 15m
# The default concurrency value is the number of available CPU.
concurrency: 12
# Allow multiple parallel golangci-lint instances running.
# If false (default) - golangci-lint acquires file lock on start.
allow-parallel-runners: true