Skip to content

Bump actions/checkout from 3 to 4 (#69) #114

Bump actions/checkout from 3 to 4 (#69)

Bump actions/checkout from 3 to 4 (#69) #114

Workflow file for this run

name: ci
on:
push:
branches:
- master
pull_request:
env:
CARGO_TERM_COLOR: always
jobs:
validation:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
toolchain: [stable, beta]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Install ${{ matrix.toolchain }} toolchain
uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.toolchain }}
components: clippy, rustfmt
- name: Setup cache
uses: Swatinem/rust-cache@v2
- name: Commune with clippy
run: cargo clippy --all -- -D warnings
- name: Check formatting
run: cargo fmt --all -- --check
- name: Run test suite
run: cargo test
- name: Check docs
env:
RUSTDOCFLAGS: -Dwarnings
run: cargo doc --all --no-deps
wasm:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install stable toolchain
uses: dtolnay/rust-toolchain@stable
- name: Install wasm-pack
uses: taiki-e/install-action@wasm-pack
- name: Run wasm tests (`--no-default-features`)
run: wasm-pack test --node --no-default-features
- name: Run wasm tests (`--all-features`)
run: wasm-pack test --node --all-features