Skip to content
Merged
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
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
test:
strategy:
matrix:
php: [ 8.3, 8.4]
php: [ 8.3, 8.4, 8.5]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
Expand Down
36 changes: 36 additions & 0 deletions .github/workflows/pages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: GitHub Pages

on:
push:
branches:
- main # Set a branch name to trigger deployment
pull_request:

jobs:
deploy:
runs-on: ubuntu-latest
permissions:
contents: write
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
steps:
- uses: actions/checkout@v6
with:
fetch-depth: 0
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.4
- uses: php-actions/composer@v6
- name: Build
run: composer run docs

- name: Deploy
uses: peaceiris/actions-gh-pages@v4
# If you're changing the branch from main,
# also change the `main` in `refs/heads/main`
# below accordingly.
if: github.ref == 'refs/heads/main'
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./.phpdoc
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
vendor
.php_cs.cache
.php-cs-fixer.cache
.idea
.phpdoc
13 changes: 10 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"php-cs:test": "vendor/bin/php-cs-fixer fix --dry-run",
"phpunit": "./vendor/bin/phpunit tests",
"phpstan": "vendor/bin/phpstan analyse -c phpstan.neon",

"docs":"vendor/bin/phpdoc",
"test": [
"@phpstan",
"@php-cs:test",
Expand All @@ -29,13 +29,20 @@
"prefer-stable": true,
"minimum-stability": "stable",
"require-dev": {
"friendsofphp/php-cs-fixer": ">=3.88.2",
"phpunit/phpunit": "^12.0",
"phpstan/phpstan": "^2.0"
"phpstan/phpstan": "^2.0",
"phpdocumentor/shim": "^3.9",
"php-cs-fixer/shim": "^3.9"

},
"require": {
"php": ">=8.3",
"ext-curl": "*",
"ext-json": "*"
},
"config": {
"allow-plugins": {
"phpdocumentor/shim": true
}
}
}
Loading