feat: band price feeder #726
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
# Based on https://github.com/actions-rs/example/blob/master/.github/workflows/quickstart.yml | |
on: [pull_request] | |
name: Basic Checks | |
jobs: | |
test: | |
name: Test Suite | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout sources | |
uses: actions/checkout@v2 | |
- name: Install toolchain | |
uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
toolchain: 1.70.0 | |
target: wasm32-unknown-unknown | |
override: true | |
- name: Use Rust cache | |
uses: Swatinem/rust-cache@v2 | |
with: | |
key: "test" | |
- name: Run build | |
uses: actions-rs/cargo@v1 | |
with: | |
toolchain: 1.70.0 | |
command: build | |
args: --workspace | |
env: | |
RUST_BACKTRACE: 1 | |
- name: Run tests | |
uses: actions-rs/cargo@v1 | |
with: | |
toolchain: 1.70.0 | |
command: test | |
args: --workspace | |
env: | |
RUST_BACKTRACE: 1 | |
- name: Compile WASM contract | |
uses: actions-rs/cargo@v1 | |
with: | |
toolchain: 1.70.0 | |
command: wasm | |
args: --workspace --exclude mesh-virtual-staking-mock | |
env: | |
RUSTFLAGS: "-C link-arg=-s" | |
lints: | |
name: Lints | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout sources | |
uses: actions/checkout@v2 | |
- name: Install toolchain | |
uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
toolchain: 1.70.0 | |
override: true | |
components: rustfmt, clippy | |
- name: Use Rust cache | |
uses: Swatinem/rust-cache@v2 | |
with: | |
key: "lints" | |
- name: Run cargo fmt | |
uses: actions-rs/cargo@v1 | |
with: | |
toolchain: 1.70.0 | |
command: fmt | |
args: --all -- --check | |
- name: Run cargo clippy | |
uses: actions-rs/cargo@v1 | |
with: | |
toolchain: 1.70.0 | |
command: clippy | |
args: --all-targets -- -D warnings -A clippy::too-many-arguments |