diff --git a/.github/workflows/code-coverage.yml b/.github/workflows/code-coverage.yml index 64cd282..7280336 100644 --- a/.github/workflows/code-coverage.yml +++ b/.github/workflows/code-coverage.yml @@ -6,13 +6,15 @@ jobs: build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 + - uses: actions/setup-go@v5 with: - fetch-depth: 2 - - uses: actions/setup-go@v2 - with: - go-version: '1.23' + go-version: 'stable' + - name: Gather dependencies + run: go mod download - name: Run coverage - run: go test -race -coverprofile=coverage.out -covermode=atomic + run: go test -race -coverprofile=coverage.txt -covermode=atomic ./... - name: Upload coverage to Codecov - uses: codecov/codecov-action@v3 + uses: codecov/codecov-action@v4 + with: + token: ${{ secrets.CODECOV_ORG_TOKEN }}