From d54d168a176398537a51c98f9e40074f975505b5 Mon Sep 17 00:00:00 2001 From: Stanislav Golubtsov Date: Thu, 5 Oct 2023 07:01:21 +0200 Subject: [PATCH] add coverage report --- .github/workflows/rust.yml | 10 ++++++++++ README.md | 1 + 2 files changed, 11 insertions(+) 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.