ci(rust): improve workflow

This commit is contained in:
EdJoPaTo
2022-11-06 13:58:05 +01:00
parent 0f19c0f2ae
commit 9bf2644c69
3 changed files with 43 additions and 48 deletions
+16 -5
View File
@@ -6,17 +6,28 @@ on:
jobs:
tarpaulin:
name: Tarpaulin
runs-on: ubuntu-22.04
steps:
- name: Setup Rust
uses: actions-rs/toolchain@v1
with:
override: true
toolchain: stable
shell: bash -eux {0}
run: |
rustup --version
rustup show
rustup toolchain install stable --profile minimal
rustup default stable
- uses: actions/checkout@v3
- uses: actions/cache@v3
with:
key: tarpaulin-${{ hashFiles('**/Cargo.lock') }}
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
- name: Run cargo-tarpaulin
uses: actions-rs/tarpaulin@v0.1
with: