Skip to content

Commit

Permalink
Merge #358: Update Coverage Workflow
Browse files Browse the repository at this point in the history
8f39f6e ci: update coverage workflow (Cameron Garnham)

Pull request description:

  - make workflow nicer
  - add 'codecov.yml' for configuration
  - remove 'rust' flag (will move to automatic flags in the future)

ACKs for top commit:
  da2ce7:
    ACK 8f39f6e

Tree-SHA512: 815593274a4a246fceb1fd2d94652ed9e05382f4dcf305fd9174498c07f2201f2ff6a8edcc8426c07a76a6d8ddf7f9f27312a8bb30c757dad686e867936ba0e0
  • Loading branch information
da2ce7 committed Aug 3, 2023
2 parents 8c7dc5e + 8f39f6e commit 3f367c6
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/coverage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,14 @@ jobs:
name: Enable Workflow Cache
uses: Swatinem/rust-cache@v2

- id: tools
name: Install Tools
uses: taiki-e/install-action@v2
with:
tool: grcov

- id: check
name: Run Build-Checks
name: Run Build Checks
run: cargo check --workspace --all-targets --all-features

- id: test
Expand All @@ -49,6 +55,5 @@ jobs:
uses: codecov/codecov-action@v3
with:
files: ${{ steps.coverage.outputs.report }}
flag: rust
verbose: true
fail_ci_if_error: true
1 change: 1 addition & 0 deletions cSpell.json
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@
"subsec",
"Swatinem",
"Swiftbit",
"taiki",
"thiserror",
"Torrentstorm",
"torrust",
Expand Down
6 changes: 6 additions & 0 deletions codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
coverage:
status:
project:
default:
target: auto
threshold: 0.5%

0 comments on commit 3f367c6

Please sign in to comment.