2023-10-26 23:19:53 +09:00
|
|
|
name: Lint Fluent Reference Files
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
paths:
|
|
|
|
- 'l10n/en-US/**.ftl'
|
|
|
|
- '.github/fluent_linter_config.yml'
|
|
|
|
- '.github/workflows/fluent_linter.yml'
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
pull_request:
|
|
|
|
paths:
|
|
|
|
- 'l10n/en-US/**.ftl'
|
|
|
|
- '.github/fluent_linter_config.yml'
|
|
|
|
- '.github/workflows/fluent_linter.yml'
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
workflow_dispatch:
|
|
|
|
permissions:
|
|
|
|
contents: read
|
|
|
|
|
|
|
|
jobs:
|
2023-10-29 03:01:40 +09:00
|
|
|
lint:
|
|
|
|
name: Lint
|
2023-10-26 23:19:53 +09:00
|
|
|
runs-on: ubuntu-latest
|
2023-10-29 03:01:40 +09:00
|
|
|
|
2023-10-26 23:19:53 +09:00
|
|
|
steps:
|
2023-10-29 03:01:40 +09:00
|
|
|
- name: Checkout repository
|
2023-10-26 23:19:53 +09:00
|
|
|
uses: actions/checkout@v4
|
2023-10-29 03:01:40 +09:00
|
|
|
|
2023-10-29 03:02:08 +09:00
|
|
|
- name: Use Python 3.12
|
2023-12-11 21:14:19 +09:00
|
|
|
uses: actions/setup-python@v5
|
2023-10-26 23:19:53 +09:00
|
|
|
with:
|
2023-10-29 03:02:08 +09:00
|
|
|
python-version: '3.12'
|
2023-10-26 23:19:53 +09:00
|
|
|
cache: 'pip'
|
2023-10-29 03:01:40 +09:00
|
|
|
|
|
|
|
- name: Install Fluent dependencies
|
2023-10-26 23:19:53 +09:00
|
|
|
run: |
|
|
|
|
pip install -r .github/requirements.txt
|
2023-10-29 03:01:40 +09:00
|
|
|
|
|
|
|
- name: Lint Fluent reference files
|
2023-10-26 23:19:53 +09:00
|
|
|
run: |
|
2023-10-29 03:15:25 +09:00
|
|
|
moz-fluent-lint ./l10n/en-US --config .github/fluent_linter_config.yml
|