Skip to content

Commit

Permalink
Change CI checkout fetch depth 5 in tests
Browse files Browse the repository at this point in the history
Code coverage requires a fetch depth > 1 to retrieve historical
information.

Signed-off-by: Chris Doherty <[email protected]>
  • Loading branch information
chrisdoherty4 committed Apr 29, 2024
1 parent 722a1ea commit 69c499d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: '5'

- uses: actions/setup-go@v5
with:
Expand Down Expand Up @@ -90,6 +92,8 @@ jobs:
needs: [test, integration]
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 5

- uses: actions/setup-go@v5
with:
Expand Down

0 comments on commit 69c499d

Please sign in to comment.