Skip to content

feat: Add awesome GitHub Pages site with modern Jekyll setup #7

feat: Add awesome GitHub Pages site with modern Jekyll setup

feat: Add awesome GitHub Pages site with modern Jekyll setup #7

Workflow file for this run

name: CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
env:
CARGO_TERM_COLOR: always
jobs:
test:
name: Test Suite
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
- name: Run tests
run: cargo test --workspace
- name: Run doctests
run: cargo test --workspace --doc
- name: Validate examples
run: |
if [ -d "examples" ]; then
EXAMPLE_COUNT=$(find examples/ -name "*.sigmos" -type f | wc -l)
echo "✓ Found $EXAMPLE_COUNT SIGMOS example files"
else
echo "No examples directory found"
fi
fmt:
name: Rustfmt
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt
- name: Enforce formatting
run: cargo fmt --check
clippy:
name: Clippy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
components: clippy
- uses: Swatinem/rust-cache@v2
- name: Linting (Zero Warnings Policy)
run: cargo clippy --workspace --all-targets --all-features -- -D warnings
docs:
name: Docs
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
- name: Check documentation
run: cargo doc --workspace --no-deps --document-private-items
- name: Test documentation
run: cargo test --workspace --doc
security_audit:
name: Security Audit
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- name: Install cargo-audit
run: cargo install cargo-audit
- name: Run audit
run: cargo audit