diff --git a/.codecov.yaml b/.codecov.yaml index 6b57b9e2..0d3f812d 100644 --- a/.codecov.yaml +++ b/.codecov.yaml @@ -1,5 +1,5 @@ flags: - project: + gdenv: carryforward: true paths: - "*" diff --git a/.github/workflows/check-commit.yml b/.github/workflows/check-commit.yml index 026f6095..b856c82b 100644 --- a/.github/workflows/check-commit.yml +++ b/.github/workflows/check-commit.yml @@ -142,45 +142,20 @@ jobs: - name: Test source code shell: bash - run: go test -v -race -covermode=atomic -coverprofile=coverage.out ./... - - - name: Upload coverage report artifact - uses: actions/upload-artifact@v3 - with: - name: coverage.out - path: coverage.out - if-no-files-found: error - - coverage: - needs: ["test"] - if: | - always() && - needs.test.result == 'success' || - needs.test.result == 'skipped' - - runs-on: ubuntu-latest - timeout-minutes: 2 - - steps: - - uses: actions/checkout@v4 - - - name: Download coverage report artifact - uses: actions/download-artifact@v3 - continue-on-error: true # OK if coverage is missing. - with: - name: coverage.out + run: go test -v -race -timeout 16m -covermode=atomic -coverprofile=coverage.out ./... - name: Upload coverage report to Codecov uses: codecov/codecov-action@v3 with: fail_ci_if_error: true + flags: gdenv token: ${{ secrets.CODECOV_TOKEN }} verbose: true # Used to ensure all branch protection requirements are met. This is a workaround until # https://github.com/github-community/community/discussions/4324 is addressed. branch_protection: - needs: ["coverage", "format", "lint", "build", "test"] + needs: ["format", "lint", "build", "test"] if: ${{ always() }} runs-on: ubuntu-latest @@ -191,14 +166,6 @@ jobs: shell: bash steps: - - name: Verify 'coverage' status - if: | - always() && - needs.coverage.result == 'failure' || - needs.coverage.result == 'cancelled' - shell: bash - run: exit 1 - - name: Verify 'format' status if: | always() &&