ci(rust): improve workflow
This commit is contained in:
@@ -6,33 +6,33 @@ on:
|
||||
|
||||
jobs:
|
||||
tarpaulin:
|
||||
runs-on: ubuntu-22.04
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Setup Rust
|
||||
shell: bash -eux {0}
|
||||
run: |
|
||||
rustup --version
|
||||
rustup show
|
||||
rustup toolchain install stable --profile minimal
|
||||
rustup default stable
|
||||
|
||||
- name: Install cargo-tarpaulin
|
||||
uses: taiki-e/install-action@v2
|
||||
with:
|
||||
tool: cargo-tarpaulin
|
||||
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
- uses: actions/cache@v3
|
||||
with:
|
||||
key: tarpaulin-${{ hashFiles('**/Cargo.lock') }}
|
||||
restore-keys: tarpaulin-
|
||||
path: |
|
||||
~/.cargo/bin/
|
||||
~/.cargo/registry/index/
|
||||
~/.cargo/registry/cache/
|
||||
~/.cargo/git/db/
|
||||
target/
|
||||
|
||||
- name: Run cargo-tarpaulin
|
||||
uses: actions-rs/tarpaulin@v0.1
|
||||
with:
|
||||
args: --all-features
|
||||
out-type: Html
|
||||
run: cargo tarpaulin --all-features --out Html
|
||||
|
||||
- name: Upload Report
|
||||
uses: actions/upload-artifact@v3
|
||||
|
||||
Reference in New Issue
Block a user