Co-authored-by: StepSecurity Bot <bot@stepsecurity.io> Co-authored-by: niStee <52573120+niStee@users.noreply.github.comclear> Co-authored-by: GideonBear <87426140+GideonBear@users.noreply.github.com>
26 lines
598 B
YAML
26 lines
598 B
YAML
on:
|
|
pull_request:
|
|
push:
|
|
branches:
|
|
- main
|
|
|
|
name: Check i18n
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
check_locale:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v4.2.2
|
|
|
|
- name: Install checker
|
|
# Build it with the dev profile as this is faster and the checker still works
|
|
run: |
|
|
cargo install --git https://github.com/topgrade-rs/topgrade_i18n_locale_checker --profile dev
|
|
|
|
- name: Run the checker
|
|
run: topgrade_i18n_locale_checker --locale-file ./locales/app.yml --rust-src-to-check ./src
|