MP-2702. Migration for Osmo contracts #1093
Workflow file for this run
This file contains 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: | |
push: | |
branches: | |
- master | |
- main | |
pull_request: | |
env: | |
RUST_BACKTRACE: 1 | |
CARGO_TERM_COLOR: always | |
jobs: | |
coverage: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Free Disk Space | |
run: | | |
echo "BEFORE CLEAN-UP:" | |
df -h / | |
echo "Cleaning up disk space..." | |
sudo rm -rf /usr/local/lib/android | |
sudo rm -rf /usr/share/dotnet | |
sudo rm -rf /usr/local/go | |
echo "AFTER CLEAN-UP:" | |
df -h / | |
- name: Checkout sources | |
uses: actions/checkout@v3 | |
# install a specific version of Go to satisfy osmosis-test-tube | |
- uses: actions/setup-go@v5 | |
with: | |
go-version: '1.21.7' | |
- name: Install cargo make | |
uses: davidB/rust-cargo-make@v1 | |
- name: Install stable Rust | |
run: cargo make install-stable | |
# Artifacts used by tests | |
- name: Compile workspace | |
run: | | |
cargo make build | |
find target/wasm32-unknown-unknown/release -type f ! -name '*.wasm' -delete | |
- name: Run test coverage | |
run: cargo make coverage-lcov | |
- name: Upload coverage to Codecov | |
uses: codecov/codecov-action@v3 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
files: target/coverage/lcov.info |