Skip to content

Commit 61fb333

Browse files
committed
Merge torrust#484: Run coverage report only in coverage workflow
df50b91 ci: run coverage report only in coverage workflow (Jose Celano) Pull request description: Run coverage report only in coverage workflow. ACKs for top commit: josecelano: ACK df50b91 Tree-SHA512: d429479edc509b75b3995c2921753c86ac961f547872d86f64f77068cd657bfb1ac47437e606bafd6ad3daa707ad65465c5ae6bd27c17b6b90ee034f812d60c6
2 parents 384e66d + df50b91 commit 61fb333

File tree

2 files changed

+6
-13
lines changed

2 files changed

+6
-13
lines changed

.github/workflows/coverage.yaml

+6-2
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,12 @@ jobs:
6868
name: Run Unit Tests
6969
run: cargo test --tests --benches --examples --workspace --all-targets --all-features
7070

71-
- id: coverage
72-
name: Generate Coverage Report
71+
- id: coverage-llvm
72+
name: Generate Coverage Report with LLVM
73+
run: cargo llvm-cov nextest --tests --benches --examples --workspace --all-targets --all-features
74+
75+
- id: coverage-grcov
76+
name: Generate Coverage Report with grcov
7377
uses: alekitto/grcov@v0.2
7478

7579
- id: upload

.github/workflows/testing.yaml

-11
Original file line numberDiff line numberDiff line change
@@ -111,12 +111,6 @@ jobs:
111111
name: Make Build Clean
112112
run: cargo clean
113113

114-
- id: tools
115-
name: Install Tools
116-
uses: taiki-e/install-action@v2
117-
with:
118-
tool: cargo-llvm-cov, cargo-nextest
119-
120114
- id: imdl
121115
name: Install Intermodal
122116
run: cargo install imdl
@@ -129,10 +123,6 @@ jobs:
129123
name: Run Unit Tests
130124
run: cargo test --tests --benches --examples --workspace --all-targets --all-features
131125

132-
- id: coverage
133-
name: Generate Coverage Report
134-
run: cargo llvm-cov nextest --tests --benches --examples --workspace --all-targets --all-features
135-
136126
integration:
137127
name: Integrations
138128
runs-on: ubuntu-latest
@@ -152,7 +142,6 @@ jobs:
152142
uses: dtolnay/rust-toolchain@stable
153143
with:
154144
toolchain: ${{ matrix.toolchain }}
155-
components: llvm-tools-preview
156145

157146
- id: cache
158147
name: Enable Job Cache

0 commit comments

Comments
 (0)