Skip to content

Merge pull request #27 from azriel91/maintenance/update-dependencies #105

Merge pull request #27 from azriel91/maintenance/update-dependencies

Merge pull request #27 from azriel91/maintenance/update-dependencies #105

Workflow file for this run

on:
push:
branches:
- main
pull_request:
branches:
- '**'
name: CI
jobs:
audit:
name: Audit
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v4
# Needed for audit-check@v2
- name: generate Cargo.lock
run: cargo generate-lockfile
- uses: rustsec/audit-check@v2
with:
token: ${{ secrets.GITHUB_TOKEN }}
fmt:
name: Rustfmt
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v4
- 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@v4
- 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@v4
- 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@v4
- 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@v4
with:
files: ./target/coverage/lcov.info
token: ${{ secrets.CODECOV_TOKEN }}
build_and_test_linux:
name: Build and Test (Linux)
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v4
- 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@v4
- 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@v4
- uses: dtolnay/rust-toolchain@stable
- name: 'Install `wasm-pack`'
uses: jetli/[email protected]
with:
version: 'latest'
- name: 'Build examples'
run: wasm-pack build --target web --release