mirror of
https://github.com/Yubico/yubioath-flutter.git
synced 2024-11-22 16:32:01 +03:00
ca3269ecd8
Bumps the github-actions group with 1 update: [actions/checkout](https://github.com/actions/checkout). - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v3...v4) --- updated-dependencies: - dependency-name: actions/checkout dependency-type: direct:production update-type: version-update:semver-major dependency-group: github-actions ... Signed-off-by: dependabot[bot] <support@github.com>
37 lines
1.0 KiB
YAML
37 lines
1.0 KiB
YAML
name: Check strings
|
|
|
|
on: [push, pull_request]
|
|
|
|
jobs:
|
|
strings:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Read variables from repo
|
|
run: cat .github/workflows/env >> $GITHUB_ENV
|
|
|
|
- name: Ensure main locale is correct
|
|
run: python check_strings.py lib/l10n/app_en.arb
|
|
|
|
- name: Check remaining locales
|
|
run: |
|
|
find lib/l10n/ -name "app_en.arb" -prune -o -name "*.arb" -print0 | xargs -r -n 1 -0 ./check_strings.py >> $GITHUB_STEP_SUMMARY || echo "::warning::Problems in locales"
|
|
|
|
- uses: subosito/flutter-action@v2
|
|
with:
|
|
channel: 'stable'
|
|
flutter-version: ${{ env.FLUTTER }}
|
|
|
|
- name: Check missing strings
|
|
run: |
|
|
flutter gen-l10n
|
|
if [[ "$(cat missing_l10n_strings.json)" != "{}" ]]; then
|
|
echo "::notice::Strings missing in translations"
|
|
echo "" >> $GITHUB_STEP_SUMMARY
|
|
echo "Missing strings:" >> $GITHUB_STEP_SUMMARY
|
|
cat missing_l10n_strings.json >> $GITHUB_STEP_SUMMARY
|
|
fi
|