feat(example): caller as local variable #428
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
concurrency: | |
group: ${{ github.head_ref || github.run_id }} | |
cancel-in-progress: true | |
jobs: | |
build: | |
name: Build | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: dtolnay/rust-toolchain@stable | |
with: | |
targets: wasm32-unknown-unknown | |
- uses: Swatinem/rust-cache@v2 | |
- uses: taiki-e/install-action@nextest | |
- uses: foundry-rs/foundry-toolchain@v1 | |
- name: Build Examples | |
run: cargo build --examples --target wasm32-unknown-unknown --release | |
- name: Run Tests | |
run: cargo nextest run --workspace --no-fail-fast --release | |
- name: Run Example Tests | |
run: cargo nextest run --workspace --no-fail-fast --release --examples | |
check: | |
name: Check | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: dtolnay/rust-toolchain@stable | |
- uses: Swatinem/rust-cache@v2 | |
- name: Format | |
run: cargo fmt --check | |
- name: Clippy | |
run: cargo clippy --all -- -D warnings |