Files
craft-i18n/.github/workflows/ci.yml
Dylan M. Taylor 6bbbae5140 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:16:33 -05:00

38 lines
1.0 KiB
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: tools
# sync_app / rekey / new_locale: catalogs are UTF-8; these tests catch encoding and
# path-separator mistakes that cargo never exercises (and that break on Windows).
run: python3 -m unittest discover -s tools -v
- name: doc
run: cargo doc --workspace --no-deps --locked