Prepare release v0.14.0 #159
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: Smart Contract Build & Test | |
on: | |
push: | |
branches: | |
- main | |
- "v*.[0-9]" | |
pull_request: | |
types: [opened, synchronize, reopened, ready_for_review] | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
build_and_test: | |
name: Rust project - latest | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
toolchain: | |
- stable | |
steps: | |
- uses: actions/checkout@v3 | |
- run: rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }} | |
- run: rustup target add wasm32-unknown-unknown | |
- name: Build required wasm | |
run: | | |
cargo build --target wasm32-unknown-unknown --release --package vault-contract | |
- name: Contract Build | |
run: | | |
cargo build --target wasm32-unknown-unknown --release | |
- name: Code Verifications | |
run: | | |
cargo clippy --all-targets --all-features -- -D warnings | |
- name: Format code | |
run: | | |
cargo fmt --check | |
- name: Code Tests and coverage | |
uses: actions-rs/[email protected] | |
with: | |
version: 0.22.0 | |
# Due to a bug with cargo-tarpaulin crate with multi-line chain calls, the test coverage was reduced. | |
# https://github.com/xd009642/tarpaulin/issues/949 | |
args: --all-features --fail-under 98.0 --out Lcov | |
- name: Upload to Coveralls | |
uses: coverallsapp/github-action@master | |
with: | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
path-to-lcov: "./lcov.info" |