From de1e92a23f9eb552bcf6c6dc31c831bcd8e8be27 Mon Sep 17 00:00:00 2001 From: "Alan D. Cabrera" Date: Sat, 26 Oct 2024 11:06:31 -0700 Subject: [PATCH] Set fetch depth in workflow --- .github/workflows/ci.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7b042eb..fad19f4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -21,6 +21,8 @@ jobs: go-version: ${{ matrix.go-version }} - name: Checkout code uses: actions/checkout@v2 + with: + fetch-depth: 0 - name: test run: go test -v -race -timeout 10s ./... - name: integration_test @@ -35,6 +37,8 @@ jobs: go-version: 1.23.x - name: Checkout code uses: actions/checkout@v2 + with: + fetch-depth: 0 - name: Linting uses: golangci/golangci-lint-action@v3 with: @@ -50,6 +54,8 @@ jobs: go-version: 1.23.x - name: Checkout code uses: actions/checkout@v2 + with: + fetch-depth: 0 - name: Calc coverage run: go test -v -covermode=count -coverprofile=coverage.out -timeout 10s ./... - name: Convert coverage.out to coverage.lcov