Skip to content

feat: reworked homepage #86

feat: reworked homepage

feat: reworked homepage #86

Workflow file for this run

name: CI
on:
pull_request:
push:
branches:
- main
env:
CARGO_TERM_COLOR: always
jobs:
docs:
name: Docs build
runs-on: ubuntu-24.04
steps:
- name: Check out repository
uses: actions/checkout@v6
- name: Setup Node.js
uses: actions/setup-node@v6
with:
node-version: 24
cache: pnpm
cache-dependency-path: docs/pnpm-lock.yaml
- name: Enable Corepack
run: corepack enable
- name: Install docs dependencies
working-directory: docs
run: pnpm install --frozen-lockfile
- name: Build docs site
working-directory: docs
run: pnpm build
rust-lint:
name: Rust lint
runs-on: ubuntu-24.04
steps:
- name: Check out repository
uses: actions/checkout@v6
- name: Set up Rust
uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt, clippy
- name: Check Rust formatting
run: cargo fmt --all --check
- name: Run Clippy
run: cargo clippy --workspace --all-targets --all-features -- -D warnings
test:
name: ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os:
- ubuntu-24.04
- macos-14
- windows-2025
steps:
- name: Check out repository
uses: actions/checkout@v6
- name: Set up Rust
uses: dtolnay/rust-toolchain@stable
- name: Run workspace tests
run: cargo test --workspace
coverage:
name: Coverage
runs-on: ubuntu-24.04
permissions:
contents: read
steps:
- name: Check out repository
uses: actions/checkout@v6
- name: Set up Rust
uses: dtolnay/rust-toolchain@stable
with:
components: llvm-tools-preview
- name: Install cargo-llvm-cov
uses: taiki-e/install-action@cargo-llvm-cov
- name: Generate LCOV coverage report
run: cargo coverage-lcov
- name: Generate JSON coverage summary
run: cargo llvm-cov report --json --summary-only --output-path target/coverage-summary.json
- name: Enforce staged crate coverage thresholds
run: node scripts/coverage-gate.mjs target/coverage-summary.json ferrocat-po=88 ferrocat-icu=93
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v5
with:
files: target/lcov.info
fail_ci_if_error: true
token: ${{ secrets.CODECOV_TOKEN }}
verbose: true
- name: Upload LCOV artifact
uses: actions/upload-artifact@v4
with:
name: coverage-lcov
path: target/lcov.info
- name: Upload coverage summary artifact
uses: actions/upload-artifact@v4
with:
name: coverage-summary-json
path: target/coverage-summary.json