reconcile/.github/workflows/check.yml

45 lines
933 B
YAML

name: Check
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
env:
CARGO_TERM_COLOR: always
RUSTFLAGS: "-Dwarnings"
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Node.js environment
uses: actions/setup-node@v4.2.0
with:
node-version: "22.x"
check-latest: true
- name: Setup rust
run: |
cargo install wasm-pack cargo-machete
- name: Build wasm
run: |
wasm-pack build --target web --features wasm
- name: Lint
run: |
cargo clippy --all-targets --all-features
cargo fmt --all -- --check
cargo machete
- name: Test
run: |
cargo test --verbose -- --include-ignored
cargo test --features serde
cargo test --features wasm
wasm-pack test --node --features wasm