Skip to content

Fix swallowed runtime exceptions #62

Fix swallowed runtime exceptions

Fix swallowed runtime exceptions #62

Workflow file for this run

name: Rust Checks
on:
pull_request:
branches: [ main ]
paths:
- '.github/workflows/rust-checks.yml'
- 'rust/**'
jobs:
build:
runs-on: ubuntu-latest
environment: tests
defaults:
run:
working-directory: ./rust
steps:
- uses: actions/checkout@v4
- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
components: rustfmt, clippy
- uses: Swatinem/rust-cache@v2
with:
cache-on-failure: "true"
workspaces: |
rust
- name: Check formatting
run: cargo fmt --all -- --check
- name: Run clippy
run: cargo clippy --all-targets --all-features -- -D warnings
- name: Build
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose --all
env:
FOREVERVM_API_BASE: ${{ secrets.FOREVERVM_API_BASE }}
FOREVERVM_TOKEN: ${{ secrets.FOREVERVM_TOKEN }}