diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 9b5450cd..38dd93da 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -20,6 +20,16 @@ jobs: with: toolchain: stable override: true + components: cargo, llvm-tools-preview + + - name: Install cargo-llvm-cov + uses: taiki-e/install-action@cargo-llvm-cov + + - name: Test and Generate code coverage + run: cargo llvm-cov --all-features --workspace --lcov --output-path lcov.info + - name: Upload coverage to Codecov + uses: codecov/codecov-action@v3 + with: + files: lcov.info + fail_ci_if_error: true - - name: Test with default feature - run: cargo test