Skip to content

Commit ca05178

Browse files
committed
Download cargo-tarpaulin directly from GitHub releases in test.yml Actions workflow
1 parent 1301174 commit ca05178

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

.github/workflows/test.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -109,10 +109,12 @@ jobs:
109109
profile: minimal
110110
toolchain: nightly
111111
override: true
112+
- name: Download cargo-tarpaulin
113+
run: |
114+
mkdir -p "$HOME/.local/bin"
115+
export PATH="$PATH:$HOME/.local/bin"
116+
wget 'https://github.com/xd009642/tarpaulin/releases/download/0.32.8/cargo-tarpaulin-x86_64-unknown-linux-gnu.tar.gz' -O- | tar xz -C "$HOME/.local/bin"
112117
- name: Measure code coverage
113-
uses: actions-rs/[email protected]
114-
with:
115-
version: '0.16.0'
116-
args: '-v --out Xml --ciserver github-actions'
118+
run: cargo tarpaulin -v --out Xml --ciserver github-actions
117119
- name: Upload coverage statistics
118120
uses: codecov/codecov-action@v1

0 commit comments

Comments
 (0)