-
Notifications
You must be signed in to change notification settings - Fork 3
62 lines (51 loc) · 2.3 KB
/
docs.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
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/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/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