Skip to content

Commit

Permalink
New main component (#50)
Browse files Browse the repository at this point in the history
  • Loading branch information
marvin255 authored Sep 29, 2024
1 parent 2b5f811 commit 62ffb14
Show file tree
Hide file tree
Showing 97 changed files with 1,515 additions and 1,831 deletions.
26 changes: 13 additions & 13 deletions .github/workflows/php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,13 @@ jobs:


build:
name: Linting and testing (PHP ${{ matrix.php-versions }})
name: Linting and testing (PHP ${{ matrix.php-versions }}, Symfony components ${{ matrix.symfony-components-versions }})
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
php-versions: ['8.0', '8.1']
php-versions: ['8.2', '8.3']
symfony-components-versions: ['^5.0', '^6.0', '^7.0']
steps:
- uses: actions/checkout@v2
- name: Install PHP
Expand All @@ -26,16 +27,11 @@ jobs:
run: php -v
- name: Validate composer.json and composer.lock
run: composer validate
- name: Cache Composer packages
id: composer-cache
uses: actions/cache@v2
with:
path: vendor
key: ${{ runner.os }}-php-${{ matrix.php-versions }}-${{ hashFiles('**/composer.json') }}
restore-keys: |
${{ runner.os }}-php-
- name: Set up Symfony components versions
run: "sed -i -E \"s#\\\"(symfony/.+)\\\".*:.*\\\"(.+)\\\"#\\\"\\1\\\":\\\"${{ matrix.symfony-components-versions }}\\\"#g\" composer.json"
- name: Show composer.json
run: cat composer.json
- name: Install dependencies
if: steps.composer-cache.outputs.cache-hit != 'true'
run: composer install --prefer-dist --no-progress --no-suggest
- name: Run test suite
run: composer run-script test
Expand Down Expand Up @@ -63,8 +59,8 @@ jobs:
strategy:
fail-fast: false
matrix:
php-versions: ['8.0', '8.1']
symfony-versions: ['5.2', '5.3', '5.4']
php-versions: ['8.2', '8.3']
symfony-versions: ['5.4', '6.4', '7.1']
steps:
- name: Checkout
uses: actions/checkout@v2
Expand Down Expand Up @@ -122,6 +118,10 @@ jobs:
php bin/console cache:clear
php bin/console doctrine:schema:create -n
- name: Lint container
run: |
cd example_app
php bin/console lint:container
- name: Test FIAS
run: |
cd example_app
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ composer.lock
.php_cs.cache
.phpunit.result.cache
.php-cs-fixer.cache
.phpunit.cache

Tests/coverage
Docker/.env
Expand Down
33 changes: 25 additions & 8 deletions .php-cs-fixer.dist.php
Original file line number Diff line number Diff line change
@@ -1,28 +1,42 @@
<?php

use PhpCsFixer\Config;
use PhpCsFixer\Runner\Parallel\ParallelConfigFactory;

$finder = PhpCsFixer\Finder::create()->in(__DIR__);

$rules = [
'@Symfony' => true,
'new_with_braces' => true,
'concat_space' => ['spacing' => 'one'],
'array_syntax' => ['syntax' => 'short'],
'new_with_parentheses' => true,
'concat_space' => [
'spacing' => 'one',
],
'array_syntax' => [
'syntax' => 'short',
],
'yoda_style' => false,
'phpdoc_no_empty_return' => false,
'no_superfluous_phpdoc_tags' => false,
'no_superfluous_phpdoc_tags' => true,
'single_line_throw' => false,
'array_indentation' => true,
'declare_strict_types' => true,
'void_return' => true,
'non_printable_character' => true,
'modernize_types_casting' => true,
'ordered_interfaces' => ['order' => 'alpha', 'direction' => 'ascend'],
'date_time_immutable' => true,
'ordered_interfaces' => [
'order' => 'alpha',
'direction' => 'ascend',
],
'date_time_immutable' => false,
'native_constant_invocation' => true,
'combine_nested_dirname' => true,
'native_function_invocation' => ['include' => ['@compiler_optimized'], 'scope' => 'namespaced', 'strict' => true],
'native_function_invocation' => [
'include' => [
'@compiler_optimized'
],
'scope' => 'namespaced',
'strict' => true,
],
'php_unit_construct' => true,
'php_unit_dedicate_assert' => true,
'php_unit_expectation' => true,
Expand All @@ -32,4 +46,7 @@
'strict_comparison' => true,
];

return (new Config())->setRules($rules)->setFinder($finder);
return (new Config())
->setParallelConfig(ParallelConfigFactory::detect())
->setRules($rules)
->setFinder($finder);
91 changes: 0 additions & 91 deletions Command/CreateElasticIndiciesCommand.php

This file was deleted.

Loading

0 comments on commit 62ffb14

Please sign in to comment.