diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 9b5450c..a85ab0a 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -20,6 +20,15 @@ jobs: with: toolchain: stable override: true + components: llvm-tools-preview - - name: Test with default feature - run: cargo test + - 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