mirror of
https://github.com/mozilla/pdf.js.git
synced 2026-07-30 19:07:22 +02:00
46 lines
1.2 KiB
YAML
46 lines
1.2 KiB
YAML
name: Lint Fluent Reference Files
|
|
on:
|
|
push:
|
|
paths:
|
|
- 'l10n/en-US/**.ftl'
|
|
- '.github/fluent_linter_config.yml'
|
|
- '.github/fluent_linter_requirements.txt'
|
|
- '.github/workflows/fluent_linter.yml'
|
|
branches:
|
|
- master
|
|
pull_request:
|
|
paths:
|
|
- 'l10n/en-US/**.ftl'
|
|
- '.github/fluent_linter_config.yml'
|
|
- '.github/fluent_linter_requirements.txt'
|
|
- '.github/workflows/fluent_linter.yml'
|
|
branches:
|
|
- master
|
|
workflow_dispatch:
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
lint:
|
|
name: Lint
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
with:
|
|
persist-credentials: false
|
|
|
|
- name: Use Python 3.14
|
|
uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
|
|
with:
|
|
python-version: '3.14'
|
|
cache: 'pip'
|
|
cache-dependency-path: '.github/fluent_linter_requirements.txt'
|
|
|
|
- name: Install requirements
|
|
run: pip install -r .github/fluent_linter_requirements.txt
|
|
|
|
- name: Lint Fluent reference files
|
|
run: moz-fluent-lint ./l10n/en-US --config .github/fluent_linter_config.yml
|