Skip to content

Merge pull request #23 from dinakars777/docs/project-roadmap #5

Merge pull request #23 from dinakars777/docs/project-roadmap

Merge pull request #23 from dinakars777/docs/project-roadmap #5

Workflow file for this run

name: CI
on:
pull_request:
branches: [main]
push:
branches: [main]
permissions:
contents: read
env:
CARGO_TERM_COLOR: always
jobs:
rust:
name: Rust
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Install Rust toolchain
run: rustup toolchain install stable --profile minimal --component clippy --component rustfmt
- name: Use stable toolchain
run: rustup default stable
- name: Cache cargo artifacts
uses: actions/cache@v5
with:
path: |
~/.cargo/git
~/.cargo/registry
target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo-
- name: Check formatting
run: cargo fmt -- --check
- name: Run tests
run: cargo test
- name: Run clippy
run: cargo clippy -- -D warnings
- name: Run self-scan
run: cargo run -- scan . --verbose