Fix 'attempt to subtract with overflow' #407
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 | |
- release/neutron | |
pull_request: | |
env: | |
RUST_BACKTRACE: 1 | |
CARGO_TERM_COLOR: always | |
jobs: | |
coverage: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout sources | |
uses: actions/checkout@v3 | |
- name: Install Rust | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: stable | |
target: wasm32-unknown-unknown | |
profile: minimal | |
override: true | |
components: llvm-tools-preview | |
- name: Install cargo make | |
uses: davidB/rust-cargo-make@v1 | |
# Artifacts used by tests. | |
# Change owner of the current directory (rust-optimizer set root for artifacts / target). | |
- name: Compile workspace | |
run: | | |
cargo make rust-optimizer | |
sudo chown -R $USER . | |
- 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 |