Skip to content

Commit

Permalink
ci(tests): use go-version-file && add cache dep path
Browse files Browse the repository at this point in the history
Signed-off-by: Dwi Siswanto <[email protected]>
  • Loading branch information
dwisiswant0 committed Mar 15, 2024
1 parent 8a41d0f commit 734daee
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ jobs:
- name: Install Go
uses: actions/setup-go@v5
with:
go-version: 'stable'
go-version-file: 'go.mod'
cache-dependency-path: '**/go.sum'
- uses: actions/checkout@v3
- name: Vetting
run: make vet
Expand All @@ -37,7 +38,8 @@ jobs:
fetch-depth: 2
- uses: actions/setup-go@v5
with:
go-version: 'stable'
go-version-file: 'go.mod'
cache-dependency-path: '**/go.sum'
- run: make cover
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
Expand Down

0 comments on commit 734daee

Please sign in to comment.