Skip to content
This repository has been archived by the owner on Jun 9, 2024. It is now read-only.

Edit help message for --log-level flag #62

Edit help message for --log-level flag

Edit help message for --log-level flag #62

Workflow file for this run

name: Rust Code Coverage 🚦
on:
push:
branches:
- 'main'
# tags:
# - '**'
jobs:
coverage:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v3
- name: Install grcov
run: |
curl -L https://github.com/mozilla/grcov/releases/latest/download/grcov-x86_64-unknown-linux-gnu.tar.bz2 | tar jxf -
sudo mv grcov /usr/local/bin/
- name: Setup Rust
uses: dtolnay/rust-toolchain@v1
with:
toolchain: stable
- name: Install llvm-tools
run: rustup component add llvm-tools-preview
- name: Build and Test with Coverage
run: |
export RUSTFLAGS="-Cinstrument-coverage"
cargo build --verbose
LLVM_PROFILE_FILE="aws-sso-auth-%p-%m.profraw" cargo test --verbose
grcov . --binary-path ./target/debug/ -s . -t lcov --branch --ignore-not-existing --ignore "/*" -o lcov.info
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
env:
files: lcov.info
fail_ci_if_error: true
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}