fix(ci): update sudo command to preserve PATH

This commit is contained in:
Orhun Parmaksız 2021-12-22 00:14:40 +03:00
parent cd5e1851de
commit 7a238b90ac
No known key found for this signature in database
GPG key ID: F83424824B3E4B90
2 changed files with 10 additions and 1 deletions

7
.github/fixtures/sysctl.conf vendored Normal file
View file

@ -0,0 +1,7 @@
# This file is used for testing.
kernel.sysrq = 1
kernel.core_uses_pid = 1
kernel.dmesg_restrict=0
vm.zone_reclaim_mode=1
net.mptcp.enabled=0

View file

@ -98,7 +98,9 @@ jobs:
mv cargo-tarpaulin ~/.cargo/bin/
- name: Run tests
run: NO_COLOR=1 sudo -E cargo tarpaulin --features live-tests --out Xml --verbose
run: |
sudo -H env "PATH=$PATH" NO_COLOR=1 \
cargo tarpaulin --features live-tests --out Xml --verbose
- name: Upload reports to codecov
uses: codecov/codecov-action@v1