Skip to content

BREAKING: Upgrade all components to new hooks API #425

BREAKING: Upgrade all components to new hooks API

BREAKING: Upgrade all components to new hooks API #425

Workflow file for this run

name: Rust
on:
push:
branches: ['main', 'develop']
pull_request:
branches: ['main', 'develop']
env:
CARGO_TERM_COLOR: always
jobs:
check-formatting:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@master
with:
toolchain: 1.72
components: rustfmt
- name: Check formatting
run: >
echo "::echo::on";
cargo fmt -- --check;
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@master
with:
toolchain: 1.72
components: clippy
- name: Run linter
run: cargo clippy -- -D warnings
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@master
with:
toolchain: 1.72
- name: Run unit and integration tests
run: cargo test --workspace --exclude workspaces-tests
workspaces-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@master
with:
toolchain: 1.72
targets: wasm32-unknown-unknown
- name: Run workspaces tests
run: >
cd workspaces-tests;
cargo install cargo-make;
cargo make test;