fix: rlp signed bytes prefix (#422) #427
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
# Based on https://github.com/actions-rs/example/blob/master/.github/workflows/quickstart.yml | |
name: Test and Lint CW contracts | |
on: | |
pull_request: | |
branches: | |
- "**" | |
paths: | |
- "contracts/cosmwasm-vm/**" | |
- "libraries/common/rust/**" | |
- ".github/workflows/basic-rust.yml" | |
push: | |
branches: | |
- main | |
jobs: | |
test: | |
name: Test Suite | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout sources | |
uses: actions/checkout@v4 | |
- name: Cache Rust dependencies | |
uses: Swatinem/rust-cache@v2 | |
- name: Run unit tests | |
run: | | |
RUST_BACKTRACE=1 cargo unit-test --locked | |
- name: Compile WASM contract | |
run: | | |
RUSTFLAGS='-C link-arg=-s' cargo wasm --locked | |
lints: | |
name: Lints | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: contracts/cosmwasm-vm | |
steps: | |
- name: Checkout sources | |
uses: actions/checkout@v4 | |
- name: Cache Rust dependencies | |
uses: Swatinem/rust-cache@v2 | |
- name: Run cargo clippy | |
run: | | |
cargo clippy |