Skip to content

Tests

Tests #3

Workflow file for this run

name: Tests
on:
push:
branches: [main, "release/**"]
pull_request:
branches: [main, "release/**"]
jobs:
tests-stable:
name: Tests (Stable)
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- name: Checkout sources
uses: actions/checkout@v3
- name: Install toolchain
uses: dtolnay/rust-toolchain@stable
with:
targets: riscv32imac-unknown-none-elf
- uses: Swatinem/rust-cache@v2
with:
cache-on-failure: true
- name: cargo test
run: cargo test --workspace --all-features
- name: cargo check no_std
run: cargo check --target riscv32imac-unknown-none-elf --no-default-features
lint:
name: Lint
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- name: Checkout sources
uses: actions/checkout@v3
- name: Install toolchain
uses: dtolnay/rust-toolchain@nightly
with:
components: rustfmt, clippy
- uses: Swatinem/rust-cache@v2
with:
cache-on-failure: true
- name: cargo fmt
run: cargo +nightly fmt --all -- --check
- name: cargo clippy
run: cargo +nightly clippy --workspace --all-features -- -D warnings
- name: cargo check no-default-features
run: |
cd crates/revm
cargo check --no-default-features
- name: cargo check serde
run: |
cd crates/revm
cargo check --no-default-features --features serde
- name: cargo check std
run: |
cd crates/revm
cargo check --no-default-features --features std