relayer test (DO NOT MERGE) #573
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: Unit | |
on: | |
push: | |
branches: | |
- main | |
- develop | |
pull_request: | |
env: | |
RUSTFLAGS: -D warnings | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
name: Check & Test | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install stable toolchain | |
uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
toolchain: stable | |
target: wasm32-unknown-unknown | |
- uses: Swatinem/rust-cache@v1 | |
- name: Install Protoc | |
uses: arduino/[email protected] | |
with: | |
repo-token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Compile Contract | |
run: cargo build -p mpc-contract --target wasm32-unknown-unknown --release | |
- name: Compile | |
run: cargo check | |
- name: Test format | |
run: cargo fmt -- --check | |
- name: Unit tests | |
run: cargo test -p mpc-recovery | |
- name: Test clippy | |
run: cargo clippy --tests -- -Dclippy::all | |
audit: | |
name: Audit | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install stable toolchain | |
uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
toolchain: stable | |
- uses: Swatinem/rust-cache@v1 | |
- name: Install Audit | |
run: cargo install cargo-audit | |
- name: Run Audit | |
uses: actions-rs/cargo@v1 | |
with: | |
command: audit | |
args: --ignore RUSTSEC-2020-0071 --ignore RUSTSEC-2023-0052 --ignore RUSTSEC-2022-0093 |