chore: speed-up post lint (#13340)
This commit is contained in:
parent
da3bbf13e5
commit
c1829fd494
1 changed files with 12 additions and 0 deletions
12
.github/workflows/default.yml
vendored
12
.github/workflows/default.yml
vendored
|
|
@ -121,12 +121,24 @@ jobs:
|
|||
cache: false # avoid cache thrashing
|
||||
id: go
|
||||
|
||||
- uses: actions/cache@v4
|
||||
with:
|
||||
path: |
|
||||
~/.cache/go-build
|
||||
~/go/pkg/mod
|
||||
key: ${{ runner.os }}-go-lint-${{ hashFiles('**/go.sum') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-go-lint-
|
||||
${{ runner.os }}-go-
|
||||
|
||||
- run: mkdir dist && touch dist/empty
|
||||
|
||||
- name: Lint
|
||||
uses: golangci/golangci-lint-action@v4
|
||||
with:
|
||||
version: latest
|
||||
skip-pkg-cache: true
|
||||
skip-build-cache: true
|
||||
args: --out-format=colored-line-number --timeout 5m
|
||||
|
||||
ui:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue