chore: speed-up post lint (#13340)

This commit is contained in:
andig 2024-04-08 10:15:04 +02:00 • committed by GitHub
parent da3bbf13e5
commit c1829fd494
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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: