Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 43 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Tests

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

env:
CARGO_TERM_COLOR: always
CARGO_NET_RETRY: 10
RUSTUP_MAX_RETRIES: 10

jobs:
tests:
runs-on: ubuntu-latest
strategy:
matrix:
toolchain: [ "1.85.0" ]
steps:
- uses: actions/checkout@v4

- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.toolchain }}
targets: wasm32-unknown-unknown
components: rustfmt, clippy, rust-src

- uses: Swatinem/rust-cache@v2
with:
cache-on-failure: true

- name: Check formatting
run: cargo fmt --all --check

- name: Check compilation
run: cargo check --workspace --all-targets

- name: Run unit and integration tests
run: cargo test --workspace --test-threads=1
env:
RUST_BACKTRACE: short
Loading