Skip to content

Commit

Permalink
ci: run coverage report only in coverage workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
josecelano committed Feb 12, 2024
1 parent 384e66d commit df50b91
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 13 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/coverage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
11 changes: 0 additions & 11 deletions .github/workflows/testing.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -152,7 +142,6 @@ jobs:
uses: dtolnay/rust-toolchain@stable
with:
toolchain: ${{ matrix.toolchain }}
components: llvm-tools-preview

- id: cache
name: Enable Job Cache
Expand Down

0 comments on commit df50b91

Please sign in to comment.