Skip to content

Commit

Permalink
Don't upload coverage when publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
hansott committed Jan 25, 2025
1 parent 2b00f00 commit 852f627
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ on:
jobs:
tests:
uses: ./.github/workflows/unit-test.yml
with:
upload_coverage: 'false'
lint:
uses: ./.github/workflows/lint.yml

Expand Down
8 changes: 7 additions & 1 deletion .github/workflows/unit-test.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
name: Rust Unit Tests

on:
workflow_call: {}
workflow_call:
inputs:
upload_coverage:
description: 'Whether to upload coverage report to Codecov'
required: false
default: 'true'
push: {}

jobs:
Expand Down Expand Up @@ -29,6 +34,7 @@ jobs:

- name: Upload coverage report to Codecov
uses: codecov/codecov-action@v4
if: ${{ inputs.upload_coverage == 'true' }}
with:
fail_ci_if_error: true
files: ./target/lcov.info
Expand Down

0 comments on commit 852f627

Please sign in to comment.