4845d35c50
I noticed the following warning in the GitHub Actions workflow logs:
`Configuration file not found: .github/linter_config.yml`
The configuration file is called `fluent_linter_config.yml` instead, so
this commit fixes the path so it points to the correct file.
Fixes 487816b
.
43 lines
950 B
YAML
43 lines
950 B
YAML
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:
|
|
lint:
|
|
name: Lint
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Use Python 3.12
|
|
uses: actions/setup-python@v4
|
|
with:
|
|
python-version: '3.12'
|
|
cache: 'pip'
|
|
|
|
- name: Install Fluent dependencies
|
|
run: |
|
|
pip install -r .github/requirements.txt
|
|
|
|
- name: Lint Fluent reference files
|
|
run: |
|
|
moz-fluent-lint ./l10n/en-US --config .github/fluent_linter_config.yml
|