Improve consistency in the GitHub Actions workflow for the Fluent linter

This commit tweaks the Fluent linter workflow to match the other
workflow files we have, so we make sure the steps have a newline between
them for better readability and align names and descriptions of steps
with how they are called in the other workflow files we have.
This commit is contained in:
Tim van der Meij 2023-10-28 20:01:40 +02:00
parent 238f3e728f
commit 4be44a370e
No known key found for this signature in database
GPG Key ID: 8C3FD2925A5F2762

View File

@ -19,19 +19,24 @@ permissions:
contents: read contents: read
jobs: jobs:
linter: lint:
name: Lint
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Clone repository - name: Checkout repository
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: Set up Python 3
- name: Use Python 3.10
uses: actions/setup-python@v4 uses: actions/setup-python@v4
with: with:
python-version: '3.10' python-version: '3.10'
cache: 'pip' cache: 'pip'
- name: Install Python dependencies
- name: Install Fluent dependencies
run: | run: |
pip install -r .github/requirements.txt pip install -r .github/requirements.txt
- name: Lint reference
- name: Lint Fluent reference files
run: | run: |
moz-fluent-lint ./l10n/en-US --config .github/linter_config.yml moz-fluent-lint ./l10n/en-US --config .github/linter_config.yml