WT-878 Blog (#1148) #572
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Fluent Linter | |
| on: | |
| push: | |
| paths: | |
| - "l10n/en/**.ftl" | |
| - ".github/l10n/*" | |
| - ".github/workflows/fluent_linter.yml" | |
| branches: | |
| - main | |
| pull_request: | |
| paths: | |
| - "l10n/en/**.ftl" | |
| - ".github/l10n/*" | |
| - ".github/workflows/fluent_linter.yml" | |
| branches: | |
| - main | |
| workflow_dispatch: | |
| jobs: | |
| linter: | |
| runs-on: ubuntu-latest | |
| if: github.repository == 'mozmeao/springfield' | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.13" | |
| - name: Install Python dependencies | |
| run: | | |
| pip install -r .github/l10n/requirements.txt | |
| - name: Lint firefox.com files | |
| run: | | |
| moz-fluent-lint l10n/en --config .github/l10n/linter_config.yml | |
| - name: Check TOML files | |
| run: | | |
| python .github/l10n/check_toml_configs.py --path . |