-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Nikita Zaporozhets <[email protected]>
- Loading branch information
Nikita Zaporozhets
committed
Jan 24, 2024
1 parent
14c9cb9
commit f2fc0db
Showing
1 changed file
with
18 additions
and
2 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 |
---|---|---|
|
@@ -20,18 +20,34 @@ jobs: | |
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Cache cargo registry | ||
uses: actions/cache@v2 | ||
with: | ||
path: | | ||
~/.cargo/registry | ||
~/.cargo/git | ||
target | ||
key: ${{ runner.os }}-cargo-registry-${{ hashFiles('**/Cargo.lock') }} | ||
|
||
- name: Setup Rust | ||
uses: ATiltedTree/[email protected] | ||
with: | ||
rust-version: nightly | ||
|
||
- name: Build and test | ||
run: cargo test -r | ||
- name: Install llvm tools | ||
run: rustup component add llvm-tools-preview | ||
|
||
- name: Install grcov | ||
run: cargo install grcov | ||
|
||
- name: Install packages | ||
run: | | ||
apt-get update | ||
protobuf-compiler | ||
- name: Build and test | ||
run: cargo test -r | ||
|
||
- name: Generate Cobertura report | ||
run: | | ||
cargo tarpaulin --out Xml | ||
|