mirror of
https://github.com/GyulyVGC/sniffnet.git
synced 2025-12-23 22:29:01 -05:00
comment code coverage step in rust.yml workflow
This commit is contained in:
32
.github/workflows/rust.yml
vendored
32
.github/workflows/rust.yml
vendored
@@ -58,25 +58,25 @@ jobs:
|
||||
run: cargo build --verbose
|
||||
|
||||
- name: clippy
|
||||
if: matrix.os != 'windows' || github.event_name != 'pull_request'
|
||||
if: matrix.os != 'windows' || github.event_name != 'pull_request'
|
||||
run: cargo clippy -- -D warnings
|
||||
|
||||
- name: test
|
||||
if: matrix.os != 'windows' || github.event_name != 'pull_request'
|
||||
run: cargo test --verbose -- --nocapture
|
||||
|
||||
- name: Install cargo-llvm-cov
|
||||
if: matrix.os == 'ubuntu'
|
||||
uses: taiki-e/install-action@cargo-llvm-cov
|
||||
|
||||
- name: Generate code coverage
|
||||
if: matrix.os == 'ubuntu'
|
||||
run: cargo llvm-cov --all-features --workspace --lcov --output-path lcov.info --include-build-script --no-cfg-coverage
|
||||
|
||||
- name: Upload coverage to Codecov
|
||||
if: matrix.os == 'ubuntu'
|
||||
uses: codecov/codecov-action@v5
|
||||
with:
|
||||
files: lcov.info
|
||||
fail_ci_if_error: false
|
||||
token: ${{ secrets.CODECOV_TOKEN }}
|
||||
# - name: Install cargo-llvm-cov
|
||||
# if: matrix.os == 'ubuntu'
|
||||
# uses: taiki-e/install-action@cargo-llvm-cov
|
||||
#
|
||||
# - name: Generate code coverage
|
||||
# if: matrix.os == 'ubuntu'
|
||||
# run: cargo llvm-cov --all-features --workspace --lcov --output-path lcov.info --include-build-script --no-cfg-coverage
|
||||
#
|
||||
# - name: Upload coverage to Codecov
|
||||
# if: matrix.os == 'ubuntu'
|
||||
# uses: codecov/codecov-action@v5
|
||||
# with:
|
||||
# files: lcov.info
|
||||
# fail_ci_if_error: false
|
||||
# token: ${{ secrets.CODECOV_TOKEN }}
|
||||
|
||||
Reference in New Issue
Block a user