Skip to content

Wom controller and bus #291

Wom controller and bus

Wom controller and bus #291

Workflow file for this run

name: PR Check
on:
pull_request:
push:
branches:
- main
jobs:
build-and-test:
name: Build and Test
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Cache cargo registry
uses: actions/cache@v4
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- name: Install test dependencies
run: sudo apt-get update && sudo apt-get install -y wabt
- name: Build project
run: cargo build --release
- name: Install Rust toolchain 1.89.0 (stable)
run: |
rustup install 1.89.0
rustup +1.89.0 component add clippy
rustup +1.89.0 component add rustfmt
rustup +1.89.0 component add rust-src
- name: Install WebAssembly target
run: rustup target add wasm32-unknown-unknown
- name: Run tests
run: cargo test --release
clippy:
name: Clippy
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install test dependencies
run: sudo apt-get update && sudo apt-get install -y wabt
- name: Install Rust toolchain 1.89.0 (stable)
run: |
rustup install 1.89.0
rustup +1.89.0 component add clippy
rustup +1.89.0 component add rustfmt
rustup +1.89.0 component add rust-src
- name: Run Clippy
run: cargo clippy --all-targets -- -D warnings
fmt:
name: Rustfmt
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Check formatting
run: cargo fmt --all -- --check