Skip to content

Commit

Permalink
comment code coverage step in rust.yml workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
GyulyVGC committed Jan 5, 2025
1 parent 64da476 commit fe97970
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}

0 comments on commit fe97970

Please sign in to comment.