comment code coverage step in rust.yml workflow

This commit is contained in:
GyulyVGC
2025-01-05 15:34:01 +01:00
parent 64da47665e
commit fe97970a1a

View File

@@ -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 }}