@@ -18,15 +18,22 @@ name: coverage
18
18
jobs :
19
19
test :
20
20
runs-on : ubuntu-latest
21
- container :
22
- image : xd009642/tarpaulin
23
- options : --security-opt seccomp=unconfined
24
21
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
26
31
- run : |
32
+ # Wait for startup of openssh-server
33
+ sleep 30
27
34
chmod 600 .test-key
28
35
mkdir /tmp/openssh-rs
29
- ssh -i .test-key -v -p 2222 -l test-user openssh -o StrictHostKeyChecking=accept-new -o UserKnownHostsFile=/tmp/openssh-rs/known_hosts whoami
36
+ ssh -i .test-key -v -p 2222 -l test-user localhost -o StrictHostKeyChecking=accept-new -o UserKnownHostsFile=/tmp/openssh-rs/known_hosts whoami
30
37
name: Test ssh connectivity
31
38
- run : |
32
39
eval $(ssh-agent)
@@ -35,14 +42,13 @@ jobs:
35
42
cat .test-key | ssh-add -
36
43
name: Set up ssh-agent
37
44
- name : Generate code coverage
38
- run : |
39
- cargo tarpaulin --verbose --timeout 300 --out Xml --forward --all-features
45
+ run : cargo llvm-cov --all-features --lcov --output-path lcov.info
40
46
env :
41
47
# makes all the ignored tests not ignored
42
48
RUSTFLAGS : --cfg=ci
43
49
# we cannot use 127.0.0.1 (the default here)
44
50
# since we are running from a different container
45
- TEST_HOST : ssh://test-user@openssh :2222
51
+ TEST_HOST : ssh://test-user@localhost :2222
46
52
- name : Upload to codecov.io
47
53
uses : codecov/codecov-action@v2
48
54
with :
0 commit comments