Skip to content

Feat: Add Github Action For Unit Tests #1

Feat: Add Github Action For Unit Tests

Feat: Add Github Action For Unit Tests #1

Workflow file for this run

name: Rust CI
on:
push:
branches:
- release/0.1.2alpha
pull_request:
branches:
- release/0.1.2alpha
workflow_dispatch:
permissions:
contents: read
env:
CARGO_TERM_COLOR: always
RUSTFLAGS: "-D warnings"
jobs:
test:
name: Format, lint, build, and test
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt, clippy
- name: Check formatting
run: cargo fmt --all -- --check
- name: Run Clippy
run: cargo clippy --workspace --all-targets --all-features
- name: Build workspace
run: cargo build --workspace --all-targets --all-features
- name: Run tests
run: cargo test --all