-
Notifications
You must be signed in to change notification settings - Fork 132
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add tarpaulin-coverall integration (#3862)
* add tarpaulin-coverall integration
- Loading branch information
Showing
1 changed file
with
45 additions
and
0 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 |
---|---|---|
|
@@ -270,3 +270,48 @@ jobs: | |
with: | ||
command: clippy | ||
args: --all-features --all-targets -- -D warnings | ||
|
||
test_coverage: | ||
name: Test Coverage | ||
needs: update_deps | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Install Rust toolchain | ||
uses: actions-rs/toolchain@v1 | ||
with: | ||
profile: minimal | ||
toolchain: stable | ||
override: true | ||
|
||
- name: Restore cargo registry index | ||
uses: actions/cache@v2 | ||
with: | ||
path: ~/.cargo/registry/index | ||
key: cargo-index-v2-${{ needs.update_deps.outputs.crates-io-index-head }} | ||
|
||
- name: Restore dependency crates | ||
uses: actions/cache@v2 | ||
with: | ||
path: ~/.cargo/registry/cache | ||
key: cargo-deps-v2-${{ hashFiles('Cargo.lock') }} | ||
|
||
- name: Build jormungandr | ||
uses: actions-rs/cargo@v1 | ||
timeout-minutes: 30 | ||
with: | ||
command: build | ||
args: --release --all | ||
|
||
- name: Run cargo-tarpaulin | ||
uses: actions-rs/[email protected] | ||
with: | ||
args: '--ignore-tests --out Lcov --features network --release --skip-clean --exclude-files testing' | ||
timeout: 3600 | ||
|
||
- name: upload to Coveralls | ||
uses: coverallsapp/github-action@master | ||
with: | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
path-to-lcov: './lcov.info' |