Skip to content

Merge pull request #152 from bulwark-security/dependabot/cargo/prost-… #287

Merge pull request #152 from bulwark-security/dependabot/cargo/prost-…

Merge pull request #152 from bulwark-security/dependabot/cargo/prost-… #287

Workflow file for this run

name: Rust
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
fmt:
name: rustfmt
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@00b49be78f40fba4e87296b2ead62868750bdd83
with:
toolchain: stable
components: rustfmt
- run: cargo fmt --check
clippy:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install Rust
uses: actions-rs/toolchain@16499b5e05bf2e26879000db0c1d13f7e13fa3af # v1.0.7
with:
toolchain: stable
components: clippy
override: true
target: wasm32-wasi
- name: Rust cache
uses: swatinem/rust-cache@3cf7f8cc28d1b4e7d01e3783be10a97d55d483c8 # v2.7.1
- name: Run clippy
run: cargo clippy --no-deps --workspace --all-targets -- --deny warnings
test:
strategy:
fail-fast: false
matrix:
rust_version:
- stable
os:
- ubuntu-latest
runs-on: ${{ matrix.os }}
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install Rust
uses: actions-rs/toolchain@16499b5e05bf2e26879000db0c1d13f7e13fa3af # v1.0.7
with:
toolchain: ${{ matrix.rust_version }}
components: clippy
override: true
target: wasm32-wasi
- name: Rust cache
uses: swatinem/rust-cache@3cf7f8cc28d1b4e7d01e3783be10a97d55d483c8 # v2.7.1
- name: Run bulwark tests
uses: actions-rs/cargo@844f36862e911db73fe0815f00a4a2602c279505 # v1.0.3
with:
command: test
args: -p bulwark-cli -p bulwark-config -p bulwark-decision -p bulwark-ext-processor -p bulwark-wasm-host -p bulwark-wasm-sdk -p bulwark-wasm-sdk-macros