-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #192 from KevFan/codecov
workflow: add codecov
- Loading branch information
Showing
2 changed files
with
13 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -45,18 +45,25 @@ jobs: | |
- uses: supercharge/[email protected] | ||
with: | ||
redis-version: 5 | ||
# Nightly is required for code coverage with doctests | ||
# https://github.com/taiki-e/cargo-llvm-cov/issues/2 | ||
- uses: actions-rs/toolchain@v1 | ||
with: | ||
profile: minimal | ||
toolchain: stable | ||
toolchain: nightly | ||
override: true | ||
- uses: abelfodil/protoc-action@v1 | ||
with: | ||
protoc-version: '3.19.4' | ||
- uses: actions-rs/cargo@v1 | ||
with: | ||
command: test | ||
args: --all-features | ||
- name: Install cargo-llvm-cov | ||
uses: taiki-e/install-action@cargo-llvm-cov | ||
- name: Test and Generate code coverage | ||
run: cargo +nightly llvm-cov --all-features --workspace --lcov --doctests --output-path lcov.info | ||
- name: Codecov | ||
uses: codecov/codecov-action@v3 | ||
with: | ||
verbose: true | ||
fail_ci_if_error: true | ||
|
||
fmt: | ||
name: Rustfmt | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters