This repository was archived by the owner on Oct 9, 2026. It is now read-only.
Repository navigation
Add the diffr TypeScript contract and pinned binary fetcher #139
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Coverage | |
| on: [pull_request, push] | |
| jobs: | |
| coverage: | |
| runs-on: ubuntu-22.04 | |
| steps: | |
| # v4.2.2 | |
| - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 | |
| - name: Install Rust | |
| run: rustup toolchain install stable --component llvm-tools-preview --target wasm32-wasip2 | |
| - name: Install cargo-llvm-cov | |
| uses: taiki-e/install-action@ff869c26e4a7acc3087d9d6c1163a80d3957bca7 # cargo-llvm-cov | |
| # WASI guests cannot use the host LLVM coverage runtime. | |
| - name: Build WASM plugins | |
| run: cargo +stable xtask build-plugins | |
| - name: Generate code coverage | |
| env: | |
| DIFFR_PLUGINS_BUILT: "1" | |
| run: cargo +stable llvm-cov --all-features --workspace --lcov --output-path lcov.info | |
| - name: Upload coverage to Codecov | |
| uses: codecov/codecov-action@75cd11691c0faa626561e295848008c8a7dddffe # v5 | |
| with: | |
| files: lcov.info | |
| fail_ci_if_error: false |