Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 1 addition & 36 deletions .github/workflows/docs-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,39 +10,4 @@ on:

jobs:
checkdocs:
name: "Check Docs"

runs-on: ${{ matrix.operating-system }}

strategy:
matrix:
dependencies:
- "locked"
php-version:
- "8.4"
operating-system:
- "ubuntu-latest"

steps:
- name: "Checkout"
uses: actions/checkout@v6

- name: "Install PHP"
uses: "shivammathur/setup-php@2.37.0"
with:
coverage: none
php-version: "${{ matrix.php-version }}"
ini-values: memory_limit=-1, opcache.enable_cli=1

- uses: ramsey/composer-install@4.0.0
with:
dependency-versions: ${{ matrix.dependencies }}

- name: "extract php code"
run: "bin/docs-extract-php-code"

- name: "lint php"
run: "php -l docs_php/*.php"

- name: "docs code style"
run: "vendor/bin/phpcbf docs_php --exclude=SlevomatCodingStandard.TypeHints.DeclareStrictTypes"
uses: patchlevel/.github/.github/workflows/docs-check.yml@main
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,11 @@ dev: static test

.PHONY: docs-extract-php
docs-extract-php:
bin/docs-extract-php-code
vendor/bin/docs-extract-php-code

.PHONY: docs-inject-php
docs-inject-php:
bin/docs-inject-php-code
vendor/bin/docs-inject-php-code

.PHONY: docs-format
docs-format: docs-phpcs docs-inject-php
Expand Down
53 changes: 0 additions & 53 deletions bin/docs-extract-php-code

This file was deleted.

70 changes: 0 additions & 70 deletions bin/docs-inject-php-code

This file was deleted.

1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
"infection/infection": "^0.32.0",
"league/commonmark": "^2.4",
"patchlevel/coding-standard": "^1.3.0",
"patchlevel/docs-tools": "^1.0",
"phpstan/phpstan": "^2.1.32",
"phpstan/phpstan-symfony": "^2.0.8",
"phpunit/phpunit": "^11.5.45",
Expand Down
38 changes: 37 additions & 1 deletion composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading