-
-
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 #39 from darkwood-fr/1.x-dev
v1.1.3
- Loading branch information
Showing
273 changed files
with
4,767 additions
and
2,488 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
This file was deleted.
Oops, something went wrong.
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,82 @@ | ||
name: Continuous Integration | ||
|
||
on: | ||
push: | ||
branches: | ||
- 1.x | ||
pull_request: | ||
|
||
jobs: | ||
cs-fix: | ||
name: Check and fix coding styles using PHP CS Fixer | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
php: [ '8.2' ] | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Setup PHP | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: ${{ matrix.php }} | ||
extensions: xsl, openswoole | ||
tools: composer | ||
coverage: none # disable XDebug for tests | ||
|
||
- name: Install dependencies | ||
run: composer install -d tools/php-cs-fixer | ||
|
||
- name: PHP-CS-Fixer | ||
run: tools/php-cs-fixer/vendor/bin/php-cs-fixer fix --config .php-cs-fixer.php --diff --dry-run | ||
|
||
phpstan: | ||
name: Execute PHPStan analysis | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
php: [ '8.2' ] | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Setup PHP | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: ${{ matrix.php }} | ||
extensions: xsl, openswoole | ||
tools: composer | ||
coverage: none # disable XDebug for tests | ||
|
||
- name: 'Install dependencies' | ||
run: | | ||
composer install -d tools/phpstan | ||
composer install | ||
- name: PHPStan | ||
run: tools/phpstan/vendor/bin/phpstan --configuration=phpstan.neon | ||
|
||
phpunit: | ||
name: Launch PHPUnit test suite | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
php: [ '8.2' ] | ||
steps: | ||
- name: Init repository | ||
uses: actions/checkout@v3 | ||
|
||
- name: Setup PHP | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: ${{ matrix.php }} | ||
extensions: xsl, openswoole | ||
tools: composer | ||
coverage: none # disable XDebug for tests | ||
|
||
- name: Install dependencies | ||
run: composer install | ||
|
||
- name: PHPUnit | ||
run: vendor/bin/phpunit |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,17 +1,11 @@ | ||
# IDS | ||
.vscode/ | ||
# Docs | ||
/docs/node_modules | ||
/docs/src/public | ||
/docs/src/resources | ||
|
||
# PHP | ||
/.phpunit.result.cache | ||
/.castor.stub.php | ||
/.php-cs-fixer.cache | ||
/.php_cs.cache | ||
/build/ | ||
/.phpunit.cache | ||
/composer.lock | ||
/vendor/ | ||
|
||
# HUGO | ||
node_modules | ||
public | ||
resources | ||
TODO | ||
site | ||
/vendor/ |
This file was deleted.
Oops, something went wrong.
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,39 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
$finder = PhpCsFixer\Finder::create() | ||
->ignoreVCSIgnored(true) | ||
->ignoreDotFiles(false) | ||
->in(__DIR__) | ||
->append([ | ||
__FILE__, | ||
]) | ||
->notPath('.castor.stub.php') | ||
; | ||
|
||
return (new PhpCsFixer\Config()) | ||
->setRiskyAllowed(true) | ||
->setRules([ | ||
'@PHP82Migration' => true, | ||
'@PhpCsFixer' => true, | ||
'@Symfony' => true, // https://cs.symfony.com/doc/ruleSets/Symfony.html | ||
'@Symfony:risky' => true, | ||
'heredoc_indentation' => false, | ||
'php_unit_internal_class' => false, // From @PhpCsFixer but we don't want it | ||
'php_unit_test_class_requires_covers' => false, // From @PhpCsFixer but we don't want it | ||
'phpdoc_add_missing_param_annotation' => false, // From @PhpCsFixer but we don't want it | ||
'concat_space' => ['spacing' => 'one'], | ||
'ordered_class_elements' => true, // Symfony(PSR12) override the default value, but we don't want | ||
'blank_line_before_statement' => true, // Symfony(PSR12) override the default value, but we don't want | ||
'declare_strict_types' => true, // https://cs.symfony.com/doc/rules/strict/declare_strict_types.html | ||
'global_namespace_import' => [ | ||
'import_constants' => true, | ||
'import_functions' => true, | ||
'import_classes' => true, | ||
], | ||
'yoda_style' => false, // https://cs.symfony.com/doc/rules/control_structure/yoda_style.html | ||
'increment_style' => ['style' => 'post'], | ||
]) | ||
->setFinder($finder) | ||
; |
This file was deleted.
Oops, something went wrong.
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
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
The MIT License (MIT) | ||
|
||
Copyright (c) 2022 Mathieu Ledru <[email protected]> | ||
Copyright (c) 2023 Darkwood | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy of | ||
this software and associated documentation files (the "Software"), to deal in | ||
|
Oops, something went wrong.