Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
6325dc0
Added tests for bundle classes
stixx Nov 30, 2025
ed83d43
Added EventSubscriber tests
stixx Dec 1, 2025
4e91622
Added tests for the ApiProblemException class
stixx Dec 1, 2025
d8d1658
Added tests for the ResponseStatusResolver
stixx Dec 1, 2025
511ccd6
Added tests for the CommandRouteDescriber
stixx Dec 1, 2025
0870ae3
Renamed Mock\Commands to Mock\Command
stixx Dec 1, 2025
5d03730
Added unit tests for the NelmioAreaRoutesChecker
stixx Dec 1, 2025
9f162bf
Added unit tests for AttributeDirectoryLoaderDecorator and CommandRou…
stixx Dec 1, 2025
8476b86
Merge remote-tracking branch 'origin/main' into tests
stixx Dec 28, 2025
97caf5a
Fixed code style in routing.php config file
stixx Dec 28, 2025
12f7892
Fixed tests due to implementation changes in main and added phpstan
stixx Dec 28, 2025
abf4af4
Implemented all test unit classes and fixed phpstan issues
stixx Jan 25, 2026
6a1adb8
Optimized the CollectNelmioApiDocRoutesPass for listing areas
stixx Jan 25, 2026
f1f5b88
Added CI github workflow
stixx Jan 25, 2026
54d0d11
Fixed phpstan errors
stixx Jan 25, 2026
4800c8a
Fixed code style issue in ConstraintViolationListNormalizer
stixx Jan 25, 2026
ae51848
Fixed phpstan unable to locate scan directory
stixx Jan 25, 2026
823e8bf
Revert code style change
stixx Jan 25, 2026
acc7e46
Added phpstan/phpstan-symfony package for symfony specific analysis
stixx Jan 25, 2026
27589ef
Added simple-phpunit version check to trigger installation without ru…
stixx Jan 25, 2026
53d6015
Added .gitignore in Functional directory for now to be visible in git
stixx Jan 25, 2026
0925138
Fixed casing issue Src in Mock/Routing
stixx Jan 25, 2026
f5382ab
Fixed renaming issue in AnnotatedCommand
stixx Jan 25, 2026
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
80 changes: 80 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
name: CI
on:
push:
branches:
- main
pull_request: ~
workflow_dispatch: ~

permissions:
contents: read

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true

jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v5
with:
persist-credentials: false
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.4'
extensions: json
coverage: none
- name: Get Composer Cache Directory
id: composer-cache
run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
- name: Cache dependencies
uses: actions/cache@v4
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: lint-composer-${{ hashFiles('**/composer.json') }}
restore-keys: lint-composer-
- name: Install dependencies
run: composer install --prefer-dist
- name: Run simple-phpunit version check
run: ./vendor/bin/simple-phpunit --version
- name: Run code style check
run: composer cs-fixer -- --dry-run --diff
- name: Run static analysis
run: composer phpstan

tests:
name: Tests (PHP ${{ matrix.php }})
needs: lint
runs-on: ubuntu-latest
strategy:
matrix:
php:
- '8.4'
steps:
- name: Checkout code
uses: actions/checkout@v5
with:
persist-credentials: false
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: json
coverage: none
- name: Get Composer Cache Directory
id: composer-cache
run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
- name: Cache dependencies
uses: actions/cache@v4
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ matrix.php }}-composer-${{ hashFiles('**/composer.json') }}
restore-keys: ${{ matrix.php }}-composer-
- name: Install dependencies
run: composer install --prefer-dist
- name: Run tests
run: composer test
1 change: 1 addition & 0 deletions .php-cs-fixer.dist.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
'phpdoc_align' => [
'align' => 'left'
],
'ordered_class_elements' => true,
'yoda_style' => false,
])
->setFinder($finder);
17 changes: 15 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,16 +34,29 @@
},
"require-dev": {
"friendsofphp/php-cs-fixer": "^3.91",
"phpstan/extension-installer": "^1.4",
"phpstan/phpstan": "^2.1",
"phpstan/phpstan-phpunit": "^2.0",
"phpstan/phpstan-symfony": "^2.0",
"symfony/phpunit-bridge": "^8.0"
},
"suggest": {
"nijens/openapi-bundle": "For creating REST APIs from your OpenAPI specification.",
"symfony/security": "For using authentication and exception handling in your APIs."
},
"config": {
"sort-packages": true
"sort-packages": true,
"allow-plugins": {
"phpstan/extension-installer": true
}
},
"scripts": {
"test": "vendor/bin/simple-phpunit"
"test": "./vendor/bin/simple-phpunit",
"check": [
"@cs-fixer",
"@phpstan"
],
"cs-fixer": "php -d memory_limit=-1 ./vendor/bin/php-cs-fixer fix",
"phpstan": "php -d memory_limit=-1 ./vendor/bin/phpstan analyse"
}
}
Loading