From c1829fd494ced8bdd457c9fc2a4cd5bb7577ec10 Mon Sep 17 00:00:00 2001 From: andig Date: Mon, 8 Apr 2024 10:15:04 +0200 Subject: [PATCH] chore: speed-up post lint (#13340) --- .github/workflows/default.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/default.yml b/.github/workflows/default.yml index 1f7c92514..d78362072 100644 --- a/.github/workflows/default.yml +++ b/.github/workflows/default.yml @@ -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: