Skip to content

Bump Swatinem/rust-cache from 2.6.0 to 2.6.1 (#41) #120

Bump Swatinem/rust-cache from 2.6.0 to 2.6.1 (#41)

Bump Swatinem/rust-cache from 2.6.0 to 2.6.1 (#41) #120

Workflow file for this run

name: CI
on:
pull_request:
push:
branches:
- main
env:
RUSTFLAGS: -Dwarnings
jobs:
test:
name: Build and Test
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macOS-latest, windows-latest]
rust: [stable, nightly]
steps:
- uses: actions/checkout@v3
- name: Install ${{ matrix.rust }}
uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.rust }}
override: true
- name: Rust Cache
uses: Swatinem/[email protected]
- name: Run tests
uses: actions-rs/cargo@v1
with:
command: test
args: --all --no-fail-fast
check_fmt_and_docs:
name: Lints and Docs
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
components: rustfmt, clippy
override: true
- uses: actions-rs/clippy-check@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: Format
run: cargo fmt --all -- --check
- name: Docs
run: cargo doc --no-deps
wasm-pack:
name: Wasm stuff
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
toolchain: nightly
override: true
target: wasm32-unknown-unknown
- uses: jetli/[email protected]
- name: build with default features
run: wasm-pack build
- name: node test
run: wasm-pack test --node
js:
name: TS tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
- run: npm ci
- run: npm run build
- run: npm run test