Skip to content
Snippets Groups Projects
Commit 543ce152 authored by muraca's avatar muraca
Browse files

added code coverage to action


Signed-off-by: default avatarmuraca <mmuraca247@gmail.com>
parent 8454948f
Branches
No related merge requests found
......@@ -6,7 +6,7 @@ on:
pull_request:
branches: [main]
env:
env:
CARGO_TERM_COLOR: always
RUSTFLAGS: "-Dwarnings"
......@@ -21,7 +21,7 @@ jobs:
- nightly
steps:
- uses: actions/checkout@v3
- name: Init nigthly install for fmt
run: rustup update nightly && rustup default nightly && rustup component add rustfmt
......@@ -30,7 +30,7 @@ jobs:
- name: Init install
run: rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }} && rustup component add clippy
- name: Clippy
run: cargo clippy --all-targets --all-features
......@@ -38,4 +38,20 @@ jobs:
run: cargo build
- name: Tests
run: cargo test
\ No newline at end of file
run: cargo test
- name: Install latest nextest release
uses: taiki-e/install-action@nextest
- name: Install cargo-llvm-cov
uses: taiki-e/install-action@cargo-llvm-cov
- name: Collect coverage data
run: cargo llvm-cov nextest --lcov --output-path lcov.info
- name: Report code coverage
uses: Nef10/lcov-reporter-action@v0.4.0
with:
lcov-file: lcov.info
pr-number: ${{ env.pr_number }}
if: github.event_name == 'pull_request'
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment