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
4 changes: 4 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ jobs:
php-version: "${{ matrix.php-version }}"
extensions: "${{ env.PHP_EXTENSIONS }}"
coverage: "none"
tools: "symfony"

- name: "Install composer dependencies"
uses: "ramsey/composer-install@v3"
Expand All @@ -65,6 +66,9 @@ jobs:
- name: "Lint twig files"
run: "(cd tests/Application && bin/console lint:twig ../../src/Resources)"

- name: "Symfony diagnostics"
run: "symfony lsp:check --format=github"

dependency-analysis:
name: "Dependency Analysis (PHP${{ matrix.php-version }} | Deps: ${{ matrix.dependencies }} | SF${{ matrix.symfony }})"

Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
/.phpunit.cache/
/.phpunit.result.cache

# symfony lsp:check analyzes the repository root and caches in var/symfony-lsp
/var/

# Symfony CLI https://symfony.com/doc/current/setup/symfony_server.html#different-php-settings-per-project
/.php-version
/php.ini
8 changes: 8 additions & 0 deletions .symfony-lsp.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"version": 1,
"projectRoots": [
"."
],
"kernel": "Acme\\SyliusExamplePlugin\\Tests\\Application\\Kernel",
"translationDiagnostics": true
}
1 change: 1 addition & 0 deletions CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ Based on the `composer.json` scripts section:
- `composer check-style` - Check code style with ECS (Easy Coding Standard)
- `composer fix-style` - Fix code style issues automatically with ECS
- `composer phpunit` - Run PHPUnit tests
- `symfony lsp:check` - Run Symfony-aware diagnostics (routes, services, templates, translations, config) against the plugin and its test application. Requires the Symfony CLI 5.20 or newer

### Static Analysis

Expand Down
7 changes: 6 additions & 1 deletion tests/Application/config/packages/framework.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
parameters:
# Adds a fallback APP_SECRET if the env var is not set, like DATABASE_URL in doctrine.yaml. symfony lsp:check
# analyzes the repository root and only loads a .env file from there, so it boots the kernel without
# tests/Application/.env
env(APP_SECRET): 'EDITME'

Comment thread
loevgaard marked this conversation as resolved.
Resolved
framework:
secret: '%env(APP_SECRET)%'
ide: phpstorm
form:
enabled: true
legacy_error_messages: false
csrf_protection: true
session:
handler_id: ~
1 change: 0 additions & 1 deletion tests/Application/config/packages/security.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
security:
enable_authenticator_manager: true
providers:
sylius_admin_user_provider:
id: sylius.admin_user_provider.email_or_name_based
Expand Down
Loading