Skip to content

Commit 756da43

Browse files
committed
simplify build pipeline
1 parent 37034d7 commit 756da43

File tree

1 file changed

+4
-21
lines changed

1 file changed

+4
-21
lines changed

.github/workflows/build.yaml

Lines changed: 4 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -88,28 +88,11 @@ jobs:
8888
working-directory: "src/"
8989
run: go test -race -cover -coverprofile=coverage.txt ./...
9090

91-
- name: Archive code coverage results
92-
uses: actions/upload-artifact@v4
93-
with:
94-
name: code-coverage
95-
path: "**/coverage.txt"
96-
97-
code_coverage:
98-
name: "Code coverage report"
99-
if: github.event_name == 'pull_request'
100-
runs-on: ubuntu-latest
101-
needs: test
102-
permissions:
103-
contents: read
104-
actions: read # to download code coverage results from "test" job
105-
pull-requests: write # write permission needed to comment on PR
106-
107-
steps:
108-
- uses: fgrosse/go-coverage-report@v1.2.0
91+
- name: Upload coverage to Codecov
92+
uses: codecov/codecov-action@v5
10993
with:
110-
root-package: "github.com/${{ github.repository }}/src"
111-
coverage-artifact-name: "code-coverage"
112-
coverage-file-name: "src/coverage.txt"
94+
token: ${{ secrets.CODECOV_TOKEN }}
95+
fail_ci_if_error: false
11396

11497
goreleaser:
11598
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)