-
-
Notifications
You must be signed in to change notification settings - Fork 320
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tests: upgraded tarpaulin and added derive macro coverage
Upgraded tarpaulin to new the new maintainer, added coverage for derive macro, and added an example. Fixes: #1144 Signed-off-by: tyrone-wu <[email protected]>
- Loading branch information
Showing
5 changed files
with
36 additions
and
20 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 |
---|---|---|
|
@@ -17,11 +17,15 @@ jobs: | |
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Install stable toolchain | ||
uses: actions-rs/toolchain@v1 | ||
with: | ||
toolchain: stable | ||
override: true | ||
uses: dtolnay/rust-toolchain@stable | ||
- uses: Swatinem/rust-cache@v2 | ||
# - name: Install tarpaulin | ||
# uses: taiki-e/install-action@v2 | ||
# with: | ||
# tool: cargo-tarpaulin | ||
- name: Install tarpaulin # Use dev tarpaulin from git repo for now, until it's pushed to release | ||
run: | | ||
rustup run stable cargo install --git https://github.com/xd009642/tarpaulin.git cargo-tarpaulin | ||
- uses: AbsaOSS/k3d-action@v2 | ||
name: "Create Single Cluster" | ||
with: | ||
|
@@ -31,8 +35,7 @@ jobs: | |
-p 10250:10250 | ||
--k3s-arg "--no-deploy=traefik,servicelb,metrics-server@server:*" | ||
- name: Run cargo-tarpaulin | ||
uses: actions-rs/[email protected] | ||
with: | ||
version: '0.18.5' | ||
out-type: Xml | ||
- uses: codecov/codecov-action@v3 | ||
run: | | ||
rustup run stable cargo tarpaulin -o xml --skip-clean | ||
- name: Upload coverage reports to Codecov | ||
uses: codecov/codecov-action@v3 |
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
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
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
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