-
Notifications
You must be signed in to change notification settings - Fork 919
39 lines (39 loc) · 1.04 KB
/
fluent_linter.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: Fluent Linter
on:
push:
paths:
- "l10n/en/**.ftl"
- "l10n-pocket/en/**.ftl"
- ".github/l10n/*"
- ".github/workflows/fluent_linter.yml"
branches:
- main
pull_request:
paths:
- "l10n/en/**.ftl"
- "l10n-pocket/en/**.ftl"
- ".github/l10n/*"
- ".github/workflows/fluent_linter.yml"
branches:
- main
workflow_dispatch:
jobs:
linter:
runs-on: ubuntu-latest
steps:
- name: Clone repository
uses: actions/checkout@v4
- name: Set up Python 3
uses: actions/setup-python@v5
with:
python-version: "3.11"
- name: Install Python dependencies
run: |
pip install moz-fluent-linter==0.4.*
- name: Lint mozilla.org files
run: |
moz-fluent-lint l10n/en --config .github/l10n/linter_config.yml
- name: Lint Pocket files
if: always() # This step should run even if the previous one fails
run: |
moz-fluent-lint l10n-pocket/en --config .github/l10n/linter_config.yml