Skip to content

Commit 54ce5bb

Browse files
CopilotMossaka
andcommitted
Fix coverage CI job by building project before running tests
The coverage job was failing because integration tests require the built wassette binary to be present in target/debug/wassette, but coverage was running tests without building first. This fix adds a build step before coverage generation to ensure the binary is available for integration tests. Co-authored-by: Mossaka <[email protected]>
1 parent 8bf8779 commit 54ce5bb

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/workflows/rust.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,8 @@ jobs:
131131
uses: taiki-e/install-action@331a600f1b10a3fed8dc56f925012bede91ae51f # v2.47.11
132132
with:
133133
tool: cargo-llvm-cov
134+
- name: Build project before coverage
135+
run: just build
134136
- name: Generate code coverage
135137
run: cargo llvm-cov --all-features --workspace --lcov --output-path lcov.info --ignore-run-fail
136138
- name: Upload coverage reports to Codecov

0 commit comments

Comments
 (0)