Skip to content

Commit

Permalink
cache go.sum (#73)
Browse files Browse the repository at this point in the history
  • Loading branch information
ktong authored Jan 23, 2024
1 parent 6d4bd2a commit 5345ba4
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/apidiff.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,5 @@ jobs:
- uses: actions/setup-go@v5
with:
go-version: 'stable'
cache-dependency-path: "**/go.sum"
- uses: joelanford/[email protected]
1 change: 1 addition & 0 deletions .github/workflows/benchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5345ba4

Please sign in to comment.