Skip to content

Commit

Permalink
Update rust.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
mat-kie authored Nov 28, 2024
1 parent 284db29 commit 5729940
Showing 1 changed file with 22 additions and 25 deletions.
47 changes: 22 additions & 25 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ jobs:
- name: Install Dependencies
run: sudo apt install libdbus-1-dev pkg-config && rustup component add clippy rustfmt

- name: Install cargo-tarpaulin
run: cargo install cargo-tarpaulin

- name: Run Clippy (Linting)
run: cargo clippy --all-targets --all-features -- -D warnings

Expand All @@ -48,31 +51,25 @@ jobs:
- name: Build Project
run: cargo build --release

- name: Upload Build Artifacts
if: never()
uses: actions/upload-artifact@v3
with:
name: hrv-rs-build
path: target/release/

- name: Install cargo-tarpaulin
run: cargo install cargo-tarpaulin

# - name: Upload Build Artifacts
# if: never()
# uses: actions/upload-artifact@v3
# with:
# name: hrv-rs-build
# path: target/release/
- name: Run Coverage Analysis
run: cargo tarpaulin --out Xml --all-targets --all-features
env:
RUSTFLAGS: "-C link-dead-code" # Required for accurate coverage analysis

- name: Upload coverage reports to Codecov
if: never()
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}

- name: Upload to Codecov
if: never()
uses: codecov/codecov-action@v3
with:
files: tarpaulin-report.xml
fail_ci_if_error: true
flags: unittests
RUSTFLAGS: "-C link-dead-code"
#
# - name: Upload coverage reports to Codecov
# uses: codecov/codecov-action@v5
# with:
# token: ${{ secrets.CODECOV_TOKEN }}
#
# - name: Upload to Codecov
# uses: codecov/codecov-action@v3
# with:
# files: tarpaulin-report.xml
# fail_ci_if_error: true
# flags: unittests

0 comments on commit 5729940

Please sign in to comment.