Files
craft-fonts/.github/workflows/ci.yml
Dylan M. Taylor f4b2ace8f8 ci: lock workflow actions through an actions.lock lockfile
Mutable action tags are a supply-chain risk: a moved tag runs different code
without a diff. Every workflow action is now pinned through
.github/workflows/actions.lock, and CI verifies the lockfile so an out-of-sync
or tampered one fails instead of running.
2026-11-12 07:18:55 -05:00

36 lines
914 B
YAML

name: CI
on:
push:
branches: [main]
pull_request:
workflow_dispatch:
permissions:
contents: read
jobs:
test:
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- name: Harden runner
uses: step-security/harden-runner@v2.22.4
with:
egress-policy: audit
- uses: actions/checkout@v7.0.1
- uses: step-security/dtolnay-rust-toolchain@v1.0.0
with:
toolchain: stable
components: rustfmt, clippy
- name: fmt
run: cargo fmt --all --check
- name: clippy
run: cargo clippy --workspace --all-targets --all-features --locked -- -D warnings
- name: test
run: cargo test --workspace --locked
- name: test (embed)
run: cargo test -p craft-fonts --features embed --locked
- name: test (embed-latin)
run: cargo test -p craft-fonts --features embed-latin --locked