update linter settings and fix linter warnings #86
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: Rust | |
on: push | |
jobs: | |
check: | |
name: Check | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: ./cosmwasm | |
steps: | |
- name: Checkout sources | |
uses: actions/checkout@v2 | |
- name: Install toolchain | |
uses: dtolnay/rust-toolchain@stable | |
with: | |
toolchain: stable | |
targets: wasm32-unknown-unknown | |
- name: Check for errors | |
run: cargo check --locked --target wasm32-unknown-unknown | |
env: | |
RUST_BACKTRACE: 1 | |
test: | |
name: Test | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: ./cosmwasm | |
steps: | |
- name: Checkout sources | |
uses: actions/checkout@v2 | |
- name: Install toolchain | |
uses: dtolnay/rust-toolchain@stable | |
with: | |
toolchain: stable | |
- name: Run tests | |
run: cargo test --lib --locked --tests | |
env: | |
RUST_BACKTRACE: 1 | |
clippy: | |
name: Clippy | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: ./cosmwasm | |
steps: | |
- name: Checkout sources | |
uses: actions/checkout@v2 | |
- name: Install toolchain | |
uses: dtolnay/rust-toolchain@stable | |
with: | |
toolchain: stable | |
components: clippy | |
- name: Run clippy | |
run: cargo clippy --tests -- -D warnings |