Skip to content

Commit

Permalink
Merge branch 'release/1.0.0' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
cristoforocervino committed Mar 13, 2021
2 parents cfebf61 + 4da4f3e commit e4787ee
Show file tree
Hide file tree
Showing 35 changed files with 1,499 additions and 2 deletions.
77 changes: 77 additions & 0 deletions .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
name: page-filter-form-bundle-CI
on:
[push, pull_request]
jobs:
build-php-7-4:
runs-on: ubuntu-latest
steps:
- uses: shivammathur/setup-php@v2
with:
php-version: '7.4'
- uses: actions/checkout@v2
- name: composer install
run: composer install

build-php-8:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: composer install
run: composer install

check-code-php-7-4:
runs-on: ubuntu-latest
needs: [ build-php-7-4 ]
steps:
- uses: shivammathur/setup-php@v2
with:
php-version: '7.4'
- uses: actions/checkout@v2
- name: composer install
run: composer install

- name: cs-check
run: composer cs-check

- name: phpstan
run: composer phpstan

check-code-php-8:
runs-on: ubuntu-latest
needs: [ build-php-8 ]
steps:
- uses: actions/checkout@v2
- name: composer install
run: composer install

- name: cs-check
run: composer cs-check

- name: phpstan
run: composer phpstan

tests-php-7-4:
runs-on: ubuntu-latest
needs: [ build-php-7-4 ]
steps:
- uses: shivammathur/setup-php@v2
with:
php-version: '7.4'
- uses: actions/checkout@v2

- name: composer install
run: composer install

- name: phpunit
run: composer phpunit

tests-php-8:
runs-on: ubuntu-latest
needs: [ build-php-8 ]
steps:
- uses: actions/checkout@v2
- name: composer install
run: composer install

- name: phpunit
run: composer phpunit
14 changes: 14 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
.idea
/var/cache/*
/var/*.db
/var/logs/*
.phpunit.result.cache
composer.lock
# Managed by Composer
/app/bootstrap.php.cache
/var/bootstrap.php.cache
/bin/*
!bin/console
!bin/symfony_requirements
/vendor/
/phpunit.xml
30 changes: 30 additions & 0 deletions .php_cs.dist
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<?php
/*
* Additional rules or rules to override.
* These rules will be added to default rules or will override them if the same key already exists.
*/

$additionalRules = [
'native_function_invocation' => true,
'phpdoc_add_missing_param_annotation' => ['only_untyped' => false],
'phpdoc_align' => true,
'phpdoc_return_self_reference' => true,
'phpdoc_trim_consecutive_blank_line_separation' => true,
'phpdoc_types_order' => ['sort_algorithm' => 'alpha', 'null_adjustment' => 'always_last'],
'phpdoc_to_comment' => false,
'phpdoc_var_without_name' => false,
'@Symfony' => true,
];

$config = PhpCsFixer\Config::create();
$config->setRules($additionalRules);
$config->setUsingCache(false);
$config->setRiskyAllowed(true);

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

$config->setFinder($finder);

return $config;
Loading

0 comments on commit e4787ee

Please sign in to comment.