From ecb35081a3db6a67d177ac0e0427105867b1dffb Mon Sep 17 00:00:00 2001 From: ktong Date: Mon, 22 Jan 2024 20:24:58 -0800 Subject: [PATCH] cache go.sum --- .github/workflows/apidiff.yml | 1 + .github/workflows/benchmark.yml | 1 + .github/workflows/coverage.yml | 1 + .github/workflows/lint.yml | 1 + .github/workflows/test.yml | 1 + 5 files changed, 5 insertions(+) diff --git a/.github/workflows/apidiff.yml b/.github/workflows/apidiff.yml index 59931d68..5ff0a2f1 100644 --- a/.github/workflows/apidiff.yml +++ b/.github/workflows/apidiff.yml @@ -16,4 +16,5 @@ jobs: - uses: actions/setup-go@v5 with: go-version: 'stable' + cache-dependency-path: "**/go.sum" - uses: joelanford/go-apidiff@v0.8.2 diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml index 051c4ee0..a7cd0e18 100644 --- a/.github/workflows/benchmark.yml +++ b/.github/workflows/benchmark.yml @@ -16,6 +16,7 @@ jobs: - uses: actions/setup-go@v5 with: go-version: 'stable' + cache-dependency-path: "**/go.sum" - name: Benchmark run: go test -v -shuffle=on -bench=. ./... - name: Benchmark (file) diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index 0d2d5ac2..f46106a7 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -16,6 +16,7 @@ jobs: - uses: actions/setup-go@v5 with: go-version: 'stable' + cache-dependency-path: "**/go.sum" - name: Coverage run: go test -v -covermode=count -coverprofile=coverage.txt ./... - name: Coverage (file) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 229b3693..4def668f 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -16,6 +16,7 @@ jobs: - uses: actions/setup-go@v5 with: go-version: 'stable' + cache-dependency-path: "**/go.sum" - name: Lint uses: golangci/golangci-lint-action@v3 - name: Lint (file) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 218ddd9f..e266e400 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -20,6 +20,7 @@ jobs: - uses: actions/setup-go@v5 with: go-version: ${{ matrix.go-version }} + cache-dependency-path: "**/go.sum" - name: Race Test run: go test -v -shuffle=on -count=10 -race ./... - name: Test