Add serializable GraphInfo
.
#91
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
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- '**' | |
name: CI | |
jobs: | |
audit: | |
name: Audit | |
runs-on: ubuntu-latest | |
timeout-minutes: 10 | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: bp3d-actions/audit-check@9c23bd47e5e7b15b824739e0862cb878a52cc211 | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
fmt: | |
name: Rustfmt | |
runs-on: ubuntu-latest | |
timeout-minutes: 10 | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: dtolnay/rust-toolchain@master | |
with: | |
toolchain: nightly | |
components: rustfmt | |
- run: cargo fmt --all -- --check | |
docs_and_spell_check: | |
name: Docs and Spell Check | |
runs-on: ubuntu-latest | |
timeout-minutes: 10 | |
env: | |
RUSTDOCFLAGS: "-Dwarnings" | |
steps: | |
- name: Checkout Actions Repository | |
uses: actions/checkout@v3 | |
- uses: dtolnay/rust-toolchain@stable | |
- name: Check spelling | |
uses: crate-ci/typos@master | |
- run: cargo doc --no-deps | |
clippy: | |
name: Clippy | |
runs-on: ubuntu-latest | |
timeout-minutes: 10 | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: dtolnay/rust-toolchain@master | |
with: | |
toolchain: nightly | |
components: clippy | |
- run: cargo clippy --workspace --all-features -- -D warnings | |
coverage: | |
name: Coverage | |
runs-on: ubuntu-latest | |
timeout-minutes: 10 | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: dtolnay/rust-toolchain@master | |
with: | |
toolchain: nightly | |
components: llvm-tools-preview | |
- uses: taiki-e/install-action@cargo-llvm-cov | |
- uses: taiki-e/install-action@nextest | |
- name: 'Collect coverage' | |
run: ./coverage.sh | |
- name: Upload to codecov.io | |
uses: codecov/codecov-action@v3 | |
with: | |
files: ./target/coverage/lcov.info | |
build_and_test_linux: | |
name: Build and Test (Linux) | |
runs-on: ubuntu-latest | |
timeout-minutes: 10 | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: dtolnay/rust-toolchain@stable | |
- uses: taiki-e/install-action@nextest | |
- name: 'Build and test' | |
run: cargo nextest run --workspace --all-targets | |
build_and_test_windows: | |
name: Build and Test (Windows) | |
runs-on: windows-latest | |
timeout-minutes: 10 | |
steps: | |
- name: Prepare symlink configuration | |
run: git config --global core.symlinks true | |
- uses: actions/checkout@v3 | |
- uses: dtolnay/rust-toolchain@stable | |
- uses: taiki-e/install-action@nextest | |
- name: 'Build and test' | |
run: cargo nextest run --workspace --all-targets | |
build_wasm: | |
name: Build WASM library | |
runs-on: ubuntu-latest | |
timeout-minutes: 10 | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: dtolnay/rust-toolchain@stable | |
- name: 'Install `wasm-pack`' | |
uses: jetli/wasm-pack-action@v0.4.0 | |
with: | |
version: 'latest' | |
- name: 'Build examples' | |
run: wasm-pack build --target web --release |