diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index c93aadf..4adb05e 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -20,3 +20,13 @@ jobs: run: cargo build --verbose - name: Run tests run: cargo test --verbose + + - name: Run coverage + uses: actions-rs/tarpaulin@v0.1 + with: + version: '0.15.0' + + - name: Upload coverage reports to Codecov + uses: codecov/codecov-action@v3 + env: + CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} diff --git a/README.md b/README.md index 0b8aaff..7d48c75 100644 --- a/README.md +++ b/README.md @@ -3,6 +3,7 @@ # wasi2ic ![Tests](https://github.com/wasm-forge/wasi2ic/actions/workflows/rust.yml/badge.svg?event=push) +[![Coverage](https://codecov.io/gh/wasm-forge/wasi2ic/branch/main/graph/badge.svg)](https://codecov.io/gh/wasm-forge/wasi2ic/branch/main/) `wasi2ic` is a tool to convert WebAssembly System Interface (WASI) dependent Wasm module to run on the Internet Computer (IC) computer.