Skip to content

Commit caeeca1

Browse files
author
Paul Yang
authored
Merge pull request #120 from wa5i/ci
CI adds cargo tarpaulin to test code coverage.
2 parents b5d7bb3 + 87f19da commit caeeca1

File tree

2 files changed

+10
-15
lines changed

2 files changed

+10
-15
lines changed

.github/workflows/rust.yml

Lines changed: 9 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Rust
22

33
on:
44
push:
5-
branches: [ "main" ]
5+
branches: [ "main", "v0.2" ]
66
paths-ignore:
77
- "docs/**"
88
- ".github/workflows/website.yml"
@@ -39,13 +39,15 @@ jobs:
3939
run: cargo test --features sync_handler --verbose
4040
- name: Run Clippy
4141
run: cargo clippy -- -D warnings
42-
- name: debug with ssh tunnel
43-
if: ${{ failure() }}
44-
uses: wa5i/ssh-to-actions@main
42+
- name: Install tarpaulin
43+
run: cargo install cargo-tarpaulin
44+
- name: Generate coverage report
45+
run: CARGO_BIN_NAME=rvault cargo tarpaulin --out Lcov
46+
- name: Upload coverage reports to Codecov
47+
uses: codecov/codecov-action@v5
4548
with:
46-
SSH_PASSWORD: ${{ secrets.SSH_PASSWORD }}
47-
NPS_SERVER: ${{ secrets.NPS_SERVER }}
48-
NPS_VKEY: ${{ secrets.NPS_VKEY }}
49+
token: ${{ secrets.CODECOV_TOKEN }}
50+
slug: wa5i/RustyVault
4951

5052
unix-tongsuo-test:
5153
strategy:
@@ -78,13 +80,6 @@ jobs:
7880
run : |
7981
export LD_LIBRARY_PATH=${RUNNER_TEMP}/tongsuo/lib
8082
OPENSSL_DIR=${RUNNER_TEMP}/tongsuo RUSTFLAGS="-C link-args=-Wl,-rpath,${RUNNER_TEMP}/tongsuo/lib" cargo test --verbose --features crypto_adaptor_tongsuo --features sync_handler --no-default-features
81-
- name: debug with ssh tunnel
82-
if: ${{ failure() }}
83-
uses: wa5i/ssh-to-actions@main
84-
with:
85-
SSH_PASSWORD: ${{ secrets.SSH_PASSWORD }}
86-
NPS_SERVER: ${{ secrets.NPS_SERVER }}
87-
NPS_VKEY: ${{ secrets.NPS_VKEY }}
8883
8984
unix-mysql-test:
9085
strategy:

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ clap = { version = "4.5", features = ["wrap_help", "derive", "env", "suggestions
4040
sysexits = { version = "0.7", features = ["std"] }
4141
build-time = "0.1"
4242
hcl-rs = "0.18"
43-
actix-web = { version = "4.4", features = ["openssl"] }
43+
actix-web = { version = "4.9", features = ["openssl"] }
4444
actix-tls = "3.1"
4545
actix-rt = "2.9"
4646
log = "0.4"

0 commit comments

Comments
 (0)