Merge branch '2.3.x' into 3.0.x #52
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "Documentation" | |
on: | |
pull_request: | |
branches: | |
- "*.x" | |
paths: | |
- .github/workflows/documentation.yml | |
- docs/** | |
push: | |
branches: | |
- "*.x" | |
paths: | |
- .github/workflows/documentation.yml | |
- docs/** | |
jobs: | |
validate-with-guides: | |
name: "Validate documentation with phpDocumentor/guides" | |
runs-on: "ubuntu-22.04" | |
steps: | |
- name: "Checkout code" | |
uses: "actions/checkout@v4" | |
- name: "Install PHP" | |
uses: "shivammathur/setup-php@v2" | |
with: | |
coverage: "none" | |
php-version: "8.2" | |
- name: "Remove existing composer file" | |
run: "rm composer.json" | |
- name: "Require phpdocumentor/guides-cli" | |
run: "composer require --dev phpdocumentor/guides-cli --no-update" | |
- name: "Install dependencies with Composer" | |
uses: "ramsey/composer-install@v3" | |
with: | |
dependency-versions: "highest" | |
- name: "Run guides-cli" | |
run: "vendor/bin/guides -vvv --no-progress --fail-on-log docs/en" |