Skip to content

Modernise CI toolchain to avoid deprecation #672

Modernise CI toolchain to avoid deprecation

Modernise CI toolchain to avoid deprecation #672

Workflow file for this run

name: Coverage
on:
push:
branches: [ main, development ]
pull_request:
branches: [ development ]
jobs:
coverage:
runs-on: ubuntu-latest
env:
TZ: "/usr/share/zoneinfo/your/location"
steps:
- uses: actions/checkout@v4
- name: Cache .cargo
uses: actions/cache@v4
with:
path: |
~/.cargo
./target
key: ${{ runner.os }}-coverage-cargo-${{ hashFiles('Cargo.toml') }}
restore-keys: ${{ runner.os }}-coverage-cargo
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@nightly
- name: Install cargo-tarpaulin
run: cargo install cargo-tarpaulin
- name: Run cargo-tarpaulin
run: cargo tarpaulin --out Lcov --all-features -- --test-threads 1
- name: Upload to codecov.io
uses: codecov/codecov-action@v4
with:
fail_ci_if_error: false