Skip to content

build(deps): update tui-logger requirement from 0.8.1 to 0.9.6 #81

build(deps): update tui-logger requirement from 0.8.1 to 0.9.6

build(deps): update tui-logger requirement from 0.8.1 to 0.9.6 #81

Workflow file for this run

name: CodeCov workflow
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
name: Test Ruscode and Upload to CodeCov
steps:
- uses: actions/checkout@v3
- name: Cache
uses: actions/cache@v2
with:
path: |
~/.cargo/registry
~/.cargo/git
target
coverage
key: codecov-cargo
# nice reusable workflow to get rust ready
- name: Setup rust toolchain
uses: hecrj/setup-rust-action@master
with:
rust-version: stable
components: "clippy, rustfmt"
- name: Run cargo test and Collect coverage
env:
RUSTFLAGS: -Cinstrument-coverage
LLVM_PROFILE_FILE: ruscode-%p-%m.profraw
run: |
cargo install grcov
rustup component add llvm-tools-preview
cargo build
cargo test
mkdir coverage-dir
grcov . --binary-path ./target/debug/ -s . -t lcov --branch --ignore-not-existing -o ./coverage-dir/lcov.info
- name: Upload coverage reports to Codecov with GitHub Action
uses: codecov/codecov-action@v3
with:
directory: ./coverage-dir/