Skip to content

Merge pull request #69 from balancednetwork/feat/fix-build-issue #324

Merge pull request #69 from balancednetwork/feat/fix-build-issue

Merge pull request #69 from balancednetwork/feat/fix-build-issue #324

Workflow file for this run

name: CosmWasm contracts Codecov
on:
pull_request:
branches:
- "**"
paths:
- "contracts/**"
- ".github/workflows/cw-codecov.yml"
push:
branches:
- main
jobs:
code-coverage:
runs-on: ubuntu-latest
env:
CARGO_TERM_COLOR: always
steps:
- name: Checkout
uses: actions/checkout@v3
with:
submodules: true
- name: Install Rust
run: rustup update stable
- name: Lock Rust Version
run: rustup override set nightly-2023-03-27
- name: Cache Rust dependencies
uses: Swatinem/rust-cache@v2
- name: Install cargo-llvm-cov
uses: taiki-e/install-action@cargo-llvm-cov
- name: Generate code coverage
run: cargo llvm-cov --lcov --output-path lcov.info --package cw-asset-manager --package cw-hub-bnusd --package cw-xcall-manager
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: lcov.info
flags: rust
fail_ci_if_error: true