mirror of
https://github.com/ClementTsang/bottom.git
synced 2025-07-26 23:24:20 +02:00
ci: switch to a manual cargo tarpaulin installation (#680)
Update to use a manual install of cargo tarpaulin, fixes the wrong filename being checked in the skip action.
This commit is contained in:
parent
c2bfcec40e
commit
128ec81200
17
.github/workflows/coverage.yml
vendored
17
.github/workflows/coverage.yml
vendored
@ -20,24 +20,31 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
concurrent_skipping: "same_content_newer"
|
concurrent_skipping: "same_content_newer"
|
||||||
skip_after_successful_duplicate: "true"
|
skip_after_successful_duplicate: "true"
|
||||||
paths: '["tests/**", "src/**", ".github/workflows/codecov.yml", ".cargo/**", "Cargo.toml", "Cargo.lock", "build.rs"]'
|
paths: '["tests/**", "src/**", ".github/workflows/coverage.yml", ".cargo/**", "Cargo.toml", "Cargo.lock", "build.rs"]'
|
||||||
do_not_skip: '["workflow_dispatch"]'
|
do_not_skip: '["workflow_dispatch"]'
|
||||||
|
|
||||||
coverage:
|
coverage:
|
||||||
needs: pre_job
|
needs: pre_job
|
||||||
if: ${{ needs.pre_job.outputs.should_skip != 'true' }}
|
if: ${{ needs.pre_job.outputs.should_skip != 'true' }}
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container:
|
|
||||||
image: xd009642/tarpaulin:develop
|
|
||||||
options: --security-opt seccomp=unconfined
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
|
- uses: actions-rs/toolchain@88dc2356392166efad76775c878094f4e83ff746 # https://github.com/actions-rs/toolchain/commit/88dc2356392166efad76775c878094f4e83ff746
|
||||||
|
with:
|
||||||
|
profile: minimal
|
||||||
|
toolchain: stable
|
||||||
|
override: true
|
||||||
|
components: rustfmt
|
||||||
|
|
||||||
- uses: Swatinem/rust-cache@842ef286fff290e445b90b4002cc9807c3669641 # 1.3.0
|
- uses: Swatinem/rust-cache@842ef286fff290e445b90b4002cc9807c3669641 # 1.3.0
|
||||||
with:
|
with:
|
||||||
key: ${{ matrix.triple.target }}
|
key: ${{ matrix.triple.target }}
|
||||||
|
|
||||||
|
- name: Install tarpaulin
|
||||||
|
run: |
|
||||||
|
cargo install cargo-tarpaulin
|
||||||
|
|
||||||
- name: Generate code coverage
|
- name: Generate code coverage
|
||||||
run: |
|
run: |
|
||||||
cargo tarpaulin --verbose --all-features --workspace --run-types AllTargets --timeout 120 --out Xml
|
cargo tarpaulin --verbose --all-features --workspace --run-types AllTargets --timeout 120 --out Xml
|
||||||
|
Loading…
x
Reference in New Issue
Block a user