-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #42 from 2lenet/fixSymfonyInsightErrors
Add dependencies to composer.json 2le/crudit#327
- Loading branch information
Showing
23 changed files
with
5,488 additions
and
5,402 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
name: PHPStan | ||
|
||
on: | ||
push: | ||
branches: [main] | ||
pull_request: | ||
branches: [main] | ||
|
||
jobs: | ||
phpstan: | ||
name: "PHPStan ${{ matrix.php-version }}" | ||
|
||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
php_version: [8.1] | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: "Install dependencies with Composer" | ||
uses: php-actions/composer@v5 | ||
with: | ||
php_version: ${{ matrix.php_version }} | ||
version: 2 | ||
args: --profile --ignore-platform-reqs | ||
|
||
- name: 'PHPStan Static Analysis' | ||
uses: php-actions/phpstan@v2 | ||
with: | ||
configuration: tests/phpstan.neon | ||
memory_limit: 256M |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
name: PHPUnit | ||
|
||
on: | ||
push: | ||
branches: [main] | ||
pull_request: | ||
branches: [main] | ||
|
||
jobs: | ||
phpunit: | ||
name: "PHPUnit ${{ matrix.php-version }}" | ||
|
||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
php_version: [8.1] | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: "Install dependencies with Composer" | ||
uses: php-actions/composer@v5 | ||
with: | ||
php_version: ${{ matrix.php_version }} | ||
version: 2 | ||
args: --profile --ignore-platform-reqs | ||
|
||
- name: "Run PHPUnit" | ||
uses: php-actions/phpunit@v2 | ||
with: | ||
php_version: ${{ matrix.php_version }} | ||
php_extensions: xdebug | ||
version: 10.3 | ||
configuration: tests/phpunit/phpunit.xml | ||
bootstrap: vendor/autoload.php |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
name: Validate | ||
|
||
on: | ||
push: | ||
branches: [main] | ||
pull_request: | ||
branches: [main] | ||
|
||
jobs: | ||
php-coding-standard: | ||
name: "PHP Coding Standard ${{ matrix.php-version }}" | ||
|
||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
php_version: [8.1] | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: 'Validate composer.json' | ||
run: composer validate | ||
|
||
- name: 'Cache Composer packages' | ||
id: composer-cache | ||
uses: actions/cache@v2 | ||
with: | ||
path: vendor | ||
key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }} | ||
restore-keys: | | ||
${{ runner.os }}-php- | ||
- name: 'Install dependencies with Composer' | ||
uses: php-actions/composer@v5 | ||
with: | ||
php_version: ${{ matrix.php_version }} | ||
version: 2 | ||
args: --profile --ignore-platform-reqs | ||
|
||
- name: 'PHP CodeSniffer Validations' | ||
run: vendor/bin/phpcs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
|
||
<ruleset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:noNamespaceSchemaLocation="vendor/squizlabs/php_codesniffer/phpcs.xsd"> | ||
|
||
<arg name="basepath" value="."/> | ||
<arg name="cache" value=".phpcs-cache"/> | ||
<arg name="colors"/> | ||
<arg name="extensions" value="php"/> | ||
<rule ref="Squiz.NamingConventions.ValidVariableName.NotCamelCaps"/> | ||
<rule ref="PSR1.Methods.CamelCapsMethodName.NotCamelCaps"> | ||
<exclude-pattern>*/lib/Doctrine/Common/Annotations/DocParser.php</exclude-pattern> | ||
</rule> | ||
<rule ref="SlevomatCodingStandard.TypeHints.LongTypeHints.UsedLongTypeHint"/> | ||
<rule ref="SlevomatCodingStandard.Namespaces.UseFromSameNamespace.UseFromSameNamespace"/> | ||
<rule ref="Squiz.Classes.ValidClassName.NotCamelCaps"/> | ||
<rule ref="SlevomatCodingStandard.Namespaces.UnusedUses"> | ||
<properties> | ||
<property name="searchAnnotations" type="bool" value="true"/> | ||
</properties> | ||
</rule> | ||
|
||
<rule ref="Generic.Files.LineLength"> | ||
<exclude name="Generic.Files.LineLength"/> | ||
</rule> | ||
|
||
<rule ref="Squiz.Functions.FunctionDeclarationArgumentSpacing.SpacingAfterHint"> | ||
<exclude name="Squiz.Functions.FunctionDeclarationArgumentSpacing.SpacingAfterHint"/> | ||
</rule> | ||
|
||
<rule ref="Squiz.Functions.MultiLineFunctionDeclaration.NewlineBeforeOpenBrace"> | ||
<exclude name="Squiz.Functions.MultiLineFunctionDeclaration.NewlineBeforeOpenBrace"/> | ||
</rule> | ||
|
||
<rule ref="PSR12"/> | ||
|
||
<file>src/</file> | ||
<exclude-pattern>src/Resources/skeleton/**/*$</exclude-pattern> | ||
|
||
|
||
</ruleset> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.