From 4d71a9ed0d2efeed333087f72b4f596e13d11b21 Mon Sep 17 00:00:00 2001 From: Fernandez Ludovic Date: Thu, 22 Jul 2021 12:09:52 +0200 Subject: [PATCH] chore: fix github action cache. --- .github/workflows/go-cross.yml | 13 +++++++++---- .github/workflows/main.yml | 3 +-- 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/.github/workflows/go-cross.yml b/.github/workflows/go-cross.yml index 39629c2b0f..b81a80d57c 100644 --- a/.github/workflows/go-cross.yml +++ b/.github/workflows/go-cross.yml @@ -34,11 +34,16 @@ jobs: - name: Cache Go modules uses: actions/cache@v2 with: + # In order: + # * Module download cache + # * Build cache (Linux) + # * Build cache (Mac) + # * Build cache (Windows) path: | - ~/go/pkg/mod # Module download cache - ~/.cache/go-build # Build cache (Linux) - ~/Library/Caches/go-build # Build cache (Mac) - '%LocalAppData%\go-build' # Build cache (Windows) + ~/go/pkg/mod + ~/.cache/go-build + ~/Library/Caches/go-build + %LocalAppData%\go-build key: ${{ runner.os }}-${{ matrix.go-version }}-go-${{ hashFiles('**/go.sum') }} restore-keys: | ${{ runner.os }}-${{ matrix.go-version }}-go- diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 3f4b8ba55e..f33d4e917f 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -15,7 +15,7 @@ jobs: runs-on: ubuntu-latest env: GO_VERSION: 1.16 - GOLANGCI_LINT_VERSION: v1.40.1 + GOLANGCI_LINT_VERSION: v1.41.1 HUGO_VERSION: 0.54.0 SEIHON_VERSION: v0.8.3 CGO_ENABLED: 0 @@ -47,7 +47,6 @@ jobs: - name: Check and get dependencies run: | - go mod download go mod tidy git diff --exit-code go.mod git diff --exit-code go.sum