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

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions .github/workflows/default.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ jobs:
strategy:
fail-fast: false
matrix:
php-versions: ['8.2', '8.3', '8.4']
php-versions: [ '8.2', '8.3', '8.4' ]

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Setup PHP with PECL extension
uses: shivammathur/setup-php@v2
Expand All @@ -26,7 +26,7 @@ jobs:

- name: Cache Composer packages
id: composer-cache
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: vendor
key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
Expand All @@ -37,10 +37,10 @@ jobs:
run: composer install --prefer-dist --no-progress

- name: Check coding standard
run: vendor/bin/phpcs -p
run: composer run-script code-check

- name: Analyze with PHPStan
run: vendor/bin/phpstan analyse
run: composer run-script phpstan

- name: Execute PHPUnit tests
run: vendor/bin/phpunit
run: composer run-script tests
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
vendor/
.phpunit.cache
.phpcs-cache
/composer.lock
7 changes: 7 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,13 @@
"php": "^8.2",
"php-vcr/php-vcr": "^1.0"
},
"scripts": {
"tests": "./vendor/bin/phpunit",
"code-check": "./vendor/bin/phpcs -p",
"code-fix": "./vendor/bin/phpcbf",
"phpstan": "./vendor/bin/phpstan analyse",
"phpstanVerbose": "@phpstan -vvv"
},
"require-dev": {
"phpunit/phpunit": "^10.0 || ^11.0 || ^12.0",
"squizlabs/php_codesniffer": "^3.7",
Expand Down
Loading