Skip to content

✨ (.gitignore): update .gitignore files to include VSCode and Cursor … #30

✨ (.gitignore): update .gitignore files to include VSCode and Cursor …

✨ (.gitignore): update .gitignore files to include VSCode and Cursor … #30

Workflow file for this run

name: Verify Code
on:
pull_request:
push:
branches:
- master
paths-ignore:
- LICENSE-*
- README.md
# Cancel in-progress runs when a new commit is pushed (only for pull_request events)
concurrency:
group: verify-${{ github.event.pull_request.number || github.run_id }}
cancel-in-progress: true
jobs:
# Secret Scanning
secret-scanning:
name: Secret Scanning
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Secret Scanning
uses: trufflesecurity/trufflehog@main
with:
extra_args: --results=verified,unknown
# Linter and Formatter
lint-and-format:
name: Linter and Formatter
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
- name: Cache cargo registry
uses: Swatinem/rust-cache@v2
- name: Check formatting
run: cargo fmt -- --check
- name: Run Clippy
run: cargo clippy -- -D warnings
build-and-test:
name: Build and Test
runs-on: ${{ matrix.os }}
strategy:
matrix:
os:
- ubuntu-latest
- windows-latest
- macos-latest
steps:
- uses: actions/checkout@v6
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
- name: Install nextest
uses: taiki-e/install-action@nextest
- name: Cache cargo registry
uses: Swatinem/rust-cache@v2
- name: Build
run: cargo build
- name: Run Tests
run: cargo nextest run