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: