-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Core dependency and tool updates with PHP 8.1
make boot fix with php 8.1 bumped dependencies refactored rector config file refactored github workflows added temporary phpstan baseline to keep track on what to fix phpstan; resolved meilisearch incorrect case phpstan; added phpstan phpunit dev depenecies; started fixing tests removing doctrine annotations; replaced document annotation with attribute; further fixing tests phpunit fixed errors, left with 19 failures fixed test regarding document reader bumped psr/log constraint fixed constraints back for apt in dockerfile no lowerest composer install for phpcs phpstan and phpunit workflows ran phpcs fixer with created config ran phpcs fixer for tests directory updated phpstan parameters added gitattributes, updated gitignore, removed composer.lock fixed renaming annotation to attribute in docs + composer.json tests namespace updated rector with skip rules ran rector + phpcsfixer updated badges for workflows in readme fixed typo in readme updated readme for support 8.1 and up phpunit fixes; left with search extension failure test phpunit resolved final test cases tried running infection with fixed config; i have no idea what core files are that are generated phpstan ignoreerrors and start fixing reformating codestyle phpstan issues resolved mostly by phpdoc typing ran phpcsfixer updated gitattributes added command attributes added asmessagehandler attributes
- Loading branch information
Showing
217 changed files
with
3,886 additions
and
12,921 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,17 @@ | ||
/.github export-ignore | ||
/doc export-ignore | ||
/docker export-ignore | ||
/tests export-ignore | ||
.dockerignore export-ignore | ||
.editorconfig export-ignore | ||
.gitattributes export-ignore | ||
.gitignore export-ignore | ||
.dockerignore export-ignore | ||
.php-cs-fixer.dist.php export-ignore | ||
docker-compose.override.yml.dist export-ignore | ||
docker-compose.yml export-ignore | ||
infection.json5.dist export-ignore | ||
Makefile export-ignore | ||
phpstan.neon.dist export-ignore | ||
phpunit.xml.dist export-ignore | ||
rector.php export-ignore |
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,45 @@ | ||
name: PHPCS | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
phpcs: | ||
name: PHP-CS-Fixer | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: true | ||
matrix: | ||
php-versions: | ||
- '8.1' | ||
- '8.2' | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup PHP | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: ${{ matrix.php-versions }} | ||
extensions: zip, xdebug | ||
coverage: xdebug | ||
env: | ||
update: true | ||
|
||
- name: Install Composer dependencies | ||
uses: ramsey/composer-install@v2 | ||
|
||
- name: Get changed files | ||
id: changed-files | ||
uses: tj-actions/changed-files@v40 | ||
|
||
- name: PHP CS Fixer | ||
run: | | ||
CHANGED_FILES=$(echo "${{ steps.changed-files.outputs.all_changed_and_modified_files }}" | tr ' ' '\n') | ||
if ! echo "${CHANGED_FILES}" | grep -qE "^(\\.php-cs-fixer(\\.dist)?\\.php|composer\\.lock)$"; then EXTRA_ARGS=$(printf -- '--path-mode=intersection\n--\n%s' "${CHANGED_FILES}"); else EXTRA_ARGS=''; fi | ||
vendor/bin/php-cs-fixer fix --config=.php-cs-fixer.dist.php -v --dry-run --diff --using-cache=no ${EXTRA_ARGS} |
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,38 @@ | ||
name: PHPStan | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
phpstan: | ||
name: PHPStan | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: true | ||
matrix: | ||
php-versions: | ||
- '8.1' | ||
- '8.2' | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup PHP | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: ${{ matrix.php-versions }} | ||
extensions: zip, xdebug | ||
coverage: xdebug | ||
env: | ||
update: true | ||
|
||
- name: Install Composer dependencies | ||
uses: ramsey/composer-install@v2 | ||
|
||
- name: PHPStan | ||
run: php vendor/bin/phpstan analyse --error-format=github |
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: PHPUnit | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
phpunit: | ||
name: PHPUnit | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: true | ||
matrix: | ||
php-versions: | ||
- '8.1' | ||
- '8.2' | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup PHP | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: ${{ matrix.php-versions }} | ||
extensions: zip, xdebug | ||
coverage: xdebug | ||
env: | ||
update: true | ||
|
||
- name: Install Composer dependencies | ||
uses: ramsey/composer-install@v2 | ||
|
||
- name: PHPUnit | ||
run: php vendor/bin/phpunit tests | ||
|
||
- name: Infection | ||
run: php vendor/bin/infection --threads=max |
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,23 @@ | ||
name: Security Check | ||
|
||
on: | ||
schedule: | ||
- cron: '0 0 * * *' | ||
|
||
jobs: | ||
build: | ||
name: Security Check | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Check for vulnerabilities | ||
uses: symfonycorp/security-checker-action@v5 | ||
with: | ||
disable-exit-code: 1 | ||
id: security-check | ||
|
||
- name: Display vulnerabilities as JSON | ||
run: echo ${{ steps.security-check.outputs.vulns }} |
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,22 @@ | ||
name: Shell Linter | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
shell_linter: | ||
name: Shell Linter | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Lint check | ||
uses: azohra/shell-linter@v0.6.0 | ||
with: | ||
path: "docker/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
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,16 @@ | ||
<?php | ||
|
||
$finder = (new PhpCsFixer\Finder()) | ||
->exclude(__DIR__ . '/vendor') | ||
->in([ | ||
__DIR__ . '/src', | ||
__DIR__ . '/tests', | ||
]) | ||
->name('*.php'); | ||
|
||
return (new PhpCsFixer\Config()) | ||
->setUsingCache(false) | ||
->setRiskyAllowed(true) | ||
->setRules([ | ||
'@PSR12' => true, | ||
])->setFinder($finder); |
Oops, something went wrong.