mirror of
https://github.com/storytold/craft-i18n.git
synced 2026-11-28 17:29:14 +01:00
Each third-party action that StepSecurity publishes a secure drop-in replacement for now uses that replacement, pinned to a commit with its version as a comment. Versions follow what we used: the newest StepSecurity release in the same major, or the closest major they publish. dtolnay/rust-toolchain refs that named a toolchain (stable, nightly, 1.76) become the replacement's `toolchain` input.
38 lines
1.1 KiB
YAML
38 lines
1.1 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@1d88384fd173af6ecb012dfd0264a306b711241a # v2.22.4
|
|
with:
|
|
egress-policy: audit
|
|
- uses: actions/checkout@v7
|
|
- uses: step-security/dtolnay-rust-toolchain@8dd607977d06adf4ed49b190381e74c17a9dd25f # 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
|