From df50b91cef95fcf7e9959b26144c6e15218656e6 Mon Sep 17 00:00:00 2001 From: Jose Celano Date: Mon, 12 Feb 2024 12:43:03 +0000 Subject: [PATCH] ci: run coverage report only in coverage workflow --- .github/workflows/coverage.yaml | 8 ++++++-- .github/workflows/testing.yaml | 11 ----------- 2 files changed, 6 insertions(+), 13 deletions(-) diff --git a/.github/workflows/coverage.yaml b/.github/workflows/coverage.yaml index f5f3a708..779162ce 100644 --- a/.github/workflows/coverage.yaml +++ b/.github/workflows/coverage.yaml @@ -68,8 +68,12 @@ jobs: name: Run Unit Tests run: cargo test --tests --benches --examples --workspace --all-targets --all-features - - id: coverage - name: Generate Coverage Report + - id: coverage-llvm + name: Generate Coverage Report with LLVM + run: cargo llvm-cov nextest --tests --benches --examples --workspace --all-targets --all-features + + - id: coverage-grcov + name: Generate Coverage Report with grcov uses: alekitto/grcov@v0.2 - id: upload diff --git a/.github/workflows/testing.yaml b/.github/workflows/testing.yaml index 21a11b23..075ae057 100644 --- a/.github/workflows/testing.yaml +++ b/.github/workflows/testing.yaml @@ -111,12 +111,6 @@ jobs: name: Make Build Clean run: cargo clean - - id: tools - name: Install Tools - uses: taiki-e/install-action@v2 - with: - tool: cargo-llvm-cov, cargo-nextest - - id: imdl name: Install Intermodal run: cargo install imdl @@ -129,10 +123,6 @@ jobs: name: Run Unit Tests run: cargo test --tests --benches --examples --workspace --all-targets --all-features - - id: coverage - name: Generate Coverage Report - run: cargo llvm-cov nextest --tests --benches --examples --workspace --all-targets --all-features - integration: name: Integrations runs-on: ubuntu-latest @@ -152,7 +142,6 @@ jobs: uses: dtolnay/rust-toolchain@stable with: toolchain: ${{ matrix.toolchain }} - components: llvm-tools-preview - id: cache name: Enable Job Cache