Merge pull request #283 from dusk-network/wasmtime #852
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
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
name: build | |
jobs: | |
analyze: | |
name: Dusk analyzer | |
runs-on: core | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install latest nightly toolchain | |
uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
toolchain: nightly | |
override: true | |
- name: Install cargo-dusk-analyzer | |
uses: actions-rs/cargo@v1 | |
with: | |
command: install | |
args: --git https://github.com/dusk-network/cargo-dusk-analyzer | |
- name: Run `cargo dusk-analyzer` | |
uses: actions-rs/cargo@v1 | |
with: | |
command: dusk-analyzer | |
test: | |
name: Make test | |
runs-on: core | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install latest nightly toolchain | |
uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
toolchain: nightly | |
override: true | |
- name: Install WASM target | |
run: rustup target add wasm32-unknown-unknown | |
- name: Add `rust-src` component | |
run: rustup component add rust-src | |
- name: Run `make test` | |
run: make test | |
fmt: | |
name: Rustfmt | |
runs-on: core | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install latest nightly toolchain | |
uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
toolchain: nightly | |
override: true | |
- run: rustup component add rustfmt | |
- name: Run `cargo fmt` | |
uses: actions-rs/cargo@v1 | |
with: | |
command: fmt | |
args: --all -- --check | |
clippy: | |
name: Clippy | |
runs-on: core | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install latest nightly toolchain | |
uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
toolchain: nightly | |
override: true | |
- run: rustup component add clippy | |
- name: Run `cargo clippy` | |
uses: actions-rs/cargo@v1 | |
with: | |
command: clippy | |
args: -- -D warnings |