Skip to content

CI

CI #9

Workflow file for this run

name: CI
on:
push:
pull_request:
workflow_dispatch:
schedule: [cron: "40 1 * * *"]
permissions:
contents: read
env:
RUSTFLAGS: -Dwarnings
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: rust version
run: |
rustc --version
cargo --version
- uses: taiki-e/install-action@cargo-hack
- name: feature compatibility
run: cargo hack check --feature-powerset --no-dev-deps
- name: rustfmt
run: cargo fmt -- --check
- name: clippy
run: cargo clippy --all-features --all-targets
- name: rustdoc
env:
RUSTDOCFLAGS: "--cfg=doc_cfg -Zunstable-options --generate-link-to-definition"
RUSTC_BOOTSTRAP: 1
run: cargo doc --all-features --no-deps
- name: Run tests
run: cargo test --all-features
wasm:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: rust version
run: |
rustc --version
cargo --version
- uses: taiki-e/install-action@wasm-pack
- name: Install clang
run: sudo apt-get install -y clang
- name: Run tests in wasm
env:
CC: clang
run: wasm-pack test --node --all-features