Skip to content

Commit

Permalink
fixup! ci: replace actions-rs, some CI refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
pulsastrix committed Aug 10, 2024
1 parent 237376a commit 41f255f
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -99,5 +99,9 @@ jobs:
- uses: baptiste0928/cargo-install@v3
with:
crate: cargo-tarpaulin
- run: cargo clean
- run: cargo tarpaulin --no-fail-fast --verbose --all-features --exclude-files */test_helper.rs --exclude-files tests --coveralls $COVERALLS_TOKEN
- run: cargo tarpaulin --no-fail-fast --all-features --exclude-files */test_helper.rs --exclude-files tests --out Lcov --engine=llvm
- name: Coveralls upload
uses: coverallsapp/github-action@main
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
file: ./lcov.info
3 changes: 3 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -65,3 +65,6 @@ rand = { version = "^0.8", default-features = false, features = ["std_rng", "std

[build-dependencies]
cfg_aliases = "0.2.1"

[lints.rust]
unexpected_cfgs = { level = "warn", check-cfg = ['cfg(tarpaulin_include)'] }
1 change: 1 addition & 0 deletions src/common/test_helper.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
*
* SPDX-License-Identifier: MIT OR Apache-2.0
*/
#![cfg(not(tarpaulin_include))]

//! Contains a few helper functions intended purely for tests.
//! Not intended to be used outside of this crate.
Expand Down
2 changes: 2 additions & 0 deletions src/token/cose/test_helper.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
*
* SPDX-License-Identifier: MIT OR Apache-2.0
*/
#![cfg(not(tarpaulin_include))]

use core::fmt::Debug;
use std::collections::HashMap;
use std::path::PathBuf;
Expand Down

0 comments on commit 41f255f

Please sign in to comment.