Skip to content

Support for 5.5

Support for 5.5 #183

Workflow file for this run

name: Build Docs
on:
pull_request:
permissions:
contents: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.head_ref }}
- uses: shivammathur/setup-php@v2
with:
php-version: '8.3'
- name: Validate composer.json and composer.lock
run: composer validate --strict
- name: Cache Composer packages
id: composer-cache
uses: actions/cache@v3
with:
path: vendor
key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-php-
- name: Install dependencies
run: composer install --prefer-dist --no-progress
- name: Generate docs
run: |
php src/bin/generate-docs.php src/factories/Factory.php docs/factories.md
php src/bin/generate-docs.php src/factories/Entry.php docs/factories/entry.md
php src/bin/generate-docs.php src/factories/Asset.php docs/factories/asset.md
php src/bin/generate-docs.php src/dom/NodeList.php docs/dom/node-list.md
php src/bin/generate-docs.php src/dom/Form.php docs/dom/forms.md
php src/bin/generate-docs.php src/behaviors/TestableResponseBehavior.php docs/assertions/http-response.md
php src/bin/generate-docs.php src/behaviors/TestableElementBehavior.php docs/assertions/element.md
php src/bin/generate-docs.php src/test/DatabaseAssertions.php docs/assertions/database.md
php src/bin/generate-docs.php src/test/RequestBuilders.php docs/making-requests.md
php src/bin/generate-docs.php src/console/TestableResponse.php docs/assertions/console-response.md
php src/bin/generate-docs.php src/web/BenchmarkResult.php docs/assertions/benchmark.md
php src/bin/generate-docs.php src/test/CookieState.php docs/cookies.md
php src/bin/generate-docs.php src/test/ActingAs.php docs/logging-in.md
php src/bin/generate-docs.php src/test/SnapshotAssertions.php docs/snapshots.md
php src/bin/generate-docs.php src/console/PestController.php docs/cli.md
- name: Add files
run: git add -A docs/
- name: Commit & Push changes
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_user_email: [email protected]
commit_user_name: docbot
commit_message: GitHub action updating docs