Repository: bearcove/loona (language: rust)

Issue:
Measure code coverage in CI
CI is set up for this repo (with Github Actions and a self-hosted runner: https://github.com/hapsoc/hring/actions), now I want to use `cargo-llvm-cov` to measure code coverage.


Discussion / hints:

Fix patch:
diff --git a/Justfile b/Justfile
index 604d0698..aac58500 100644
--- a/Justfile
+++ b/Justfile
@@ -3,6 +3,12 @@
 _default:
 	just --list
 
+# Run all tests with nextest and cargo-llvm-cov
+ci-test:
+	#!/bin/bash -eux
+	cargo llvm-cov nextest --lcov --output-path coverage.lcov
+	codecov
+
 # Run all tests with cargo nextest
 test *args:
 	RUST_BACKTRACE=1 cargo nextest run {{args}}


Test patch:
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
index 574c8626..1c08b9a8 100644
--- a/.github/workflows/test.yml
+++ b/.github/workflows/test.yml
@@ -17,5 +17,5 @@ jobs:
           cd ${{ github.workspace }}
           sccache --zero-stats
           cargo clippy
-          just test
+          just ci-test
           sccache --show-stats
\ No newline at end of file