Skip to content

Commit

Permalink
Refactor CI
Browse files Browse the repository at this point in the history
  • Loading branch information
mpysiak committed Nov 5, 2024
1 parent 000877e commit 7eaa18d
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 11 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -165,14 +165,19 @@ jobs:
name: Load fixtures in test application
run: (cd tests/Application && bin/console sylius:fixtures:load -n)

-
name: Validate composer.json
run: composer validate --ansi --strict --no-check-all
# Restore before InvoicingPlugin 1.0 release
# run: composer validate --ansi --strict --no-check-publish

-
name: Run security check
run: symfony security:check

-
name: Run analysis
run: composer analyse
if: matrix.sylius != '~1.12.0'
name: Run PHPStan
run: vendor/bin/phpstan analyse -c phpstan.neon -l max src/

-
name: Run PHPSpec
Expand Down
6 changes: 0 additions & 6 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,12 +65,6 @@
}
},
"scripts": {
"analyse": [
"vendor/bin/phpstan analyse -c phpstan.neon -l max"
],
"fix": [
"vendor/bin/ecs check --fix src/ spec/"
],
"auto-scripts": {
"cache:clear": "symfony-cmd",
"assets:install %PUBLIC_DIR%": "symfony-cmd"
Expand Down
2 changes: 1 addition & 1 deletion src/Factory/InvoiceFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
final class InvoiceFactory implements InvoiceFactoryInterface
{
/**
* @psalm-param class-string $className
* @param class-string $className
*/
public function __construct(
private readonly string $className,
Expand Down
2 changes: 1 addition & 1 deletion src/Factory/InvoiceShopBillingDataFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
final class InvoiceShopBillingDataFactory implements InvoiceShopBillingDataFactoryInterface
{
/**
* @psalm-param class-string $className
* @param class-string $className
*/
public function __construct(
private readonly string $className
Expand Down

0 comments on commit 7eaa18d

Please sign in to comment.