Merge pull request #169 from mozilla-l10n/api-error-string-additions #295
This file contains 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: Lint Reference Files | |
on: | |
push: | |
paths: | |
- '.github/linter_config.yml' | |
- 'en/**.ftl' | |
branches: | |
- main | |
pull_request: | |
paths: | |
- '.github/linter_config.yml' | |
- 'en/**.ftl' | |
branches: | |
- main | |
workflow_dispatch: | |
jobs: | |
linter: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Clone repository | |
uses: actions/checkout@v3 | |
- name: Set up Python 3 | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.10' | |
cache: 'pip' | |
- name: Install Python dependencies | |
run: | | |
pip install -r .github/requirements.txt | |
- name: Lint reference | |
run: | | |
moz-fluent-lint ./en --config .github/linter_config.yml |