mirror of
https://github.com/storytold/craft-fonts.git
synced 2026-11-21 18:00:45 +01:00
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.
36 lines
914 B
YAML
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
|