respect-validation/.github/workflows/continuous-integration-docs.yml
Henrique Moody 098c973a2a
Add GitHub action to lint documentation files
When we make changes to the category of a validator, it's easy to forget
to update overall list of validators. This commit a GitHub actions that
will run a console command to check if the documentation it up-to-date.

The job will fail when we need to change the document, but the console
command will fix the issues, so there isn't a lot of friction there.
2026-01-13 23:37:05 -07:00

33 lines
599 B
YAML

name: Continuous Integration (docs)
on:
push:
paths-ignore:
- 'data/**'
- 'tests/**'
pull_request:
paths-ignore:
- 'data/**'
- 'tests/**'
jobs:
docs:
name: Documentation
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Install PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.5
coverage: none
- name: Install dependencies
run: composer install --prefer-dist
- name: Lint documentation files
run: bin/console docs:lint