Skip to content

Commit fbedd8c

Browse files
committed
Use cargo-llvm-cov to test coverage
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
1 parent 38ca631 commit fbedd8c

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

.github/workflows/coverage.yml

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,16 @@ name: coverage
1818
jobs:
1919
test:
2020
runs-on: ubuntu-latest
21-
container:
22-
image: xd009642/tarpaulin
23-
options: --security-opt seccomp=unconfined
2421
steps:
25-
- uses: actions/checkout@v2
22+
- uses: actions/checkout@v3
23+
- uses: actions-rs/toolchain@v1
24+
with:
25+
profile: minimal
26+
toolchain: stable
27+
override: true
28+
components: llvm-tools-preview
29+
- name: Install cargo-llvm-cov
30+
uses: taiki-e/install-action@cargo-llvm-cov
2631
- run: |
2732
chmod 600 .test-key
2833
mkdir /tmp/openssh-rs
@@ -35,8 +40,7 @@ jobs:
3540
cat .test-key | ssh-add -
3641
name: Set up ssh-agent
3742
- name: Generate code coverage
38-
run: |
39-
cargo tarpaulin --verbose --timeout 300 --out Xml --forward --all-features
43+
run: cargo llvm-cov --all-features --lcov --output-path lcov.info
4044
env:
4145
# makes all the ignored tests not ignored
4246
RUSTFLAGS: --cfg=ci

0 commit comments

Comments
 (0)