ci: replace codecov upload with coverage summary display
Remove the Codecov action for uploading coverage reports and instead add a step to display a summary of test coverage in the CI output.
This commit is contained in:
parent
db92750d12
commit
b8906e44c1
@ -33,14 +33,12 @@ jobs:
|
||||
- name: Run tests
|
||||
env:
|
||||
XAI_API_KEY: ${{ secrets.XAI_API_KEY }}
|
||||
run: |
|
||||
run: |
|
||||
go test -v -race -coverprofile=coverage.out ./...
|
||||
|
||||
- name: Upload coverage
|
||||
uses: codecov/codecov-action@v4
|
||||
with:
|
||||
file: ./coverage.out
|
||||
fail_ci_if_error: false
|
||||
- name: Display coverage summary
|
||||
run: |
|
||||
go tool cover -func=coverage.out | tail -1
|
||||
|
||||
lint:
|
||||
name: Lint
|
||||
|
||||
Loading…
Reference in New Issue
Block a user