mirror of
https://github.com/Respect/Validation.git
synced 2026-03-22 17:54:41 +01:00
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.
33 lines
599 B
YAML
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
|