chore: release main (#27) #45
This file contains hidden or 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
name: CI | |
on: | |
push: | |
branches: | |
- main | |
workflow_call: | |
# on: | |
# push: | |
# branches: | |
# - main | |
# pull_request: | |
# branches: | |
# - "**" | |
# | |
jobs: | |
rust_check: | |
name: Rust check | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Cache Rust | |
uses: actions/cache@v4 | |
with: | |
path: | | |
~/.rustup/toolchains | |
~/.cargo/registry | |
~/.cargo/git | |
target | |
key: ${{ runner.os }}-rust-${{ steps.toolchain.outputs.cachekey }} | |
restore-keys: ${{ runner.os }}-rust- | |
- name: Install Rust Toolchain | |
uses: dtolnay/rust-toolchain@master | |
with: | |
toolchain: stable | |
components: rustfmt | |
- uses: davidB/rust-cargo-make@v1 | |
- uses: taiki-e/install-action@nextest | |
- name: Run Clippy | |
run: | | |
cargo make clippy | |
- name: Run Rustfmt | |
run: | | |
cargo make fmt | |
- name: Run cargo doc | |
run: cargo doc --no-deps | |
- name: Spell Check | |
env: | |
RUSTDOCFLAGS: "-Dwarnings" | |
uses: crate-ci/typos@master | |
- name: Audit | |
uses: actions-rust-lang/audit@v1 | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Run Tests | |
run: | | |
cargo make test | |
- name: Run Doc Tests | |
run: | | |
cargo make doc-test |