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 #8 from yzen-dev/feature/v3.0.0-dev
Release v3.0.0
- Loading branch information
Showing
103 changed files
with
5,957 additions
and
1,649 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 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,26 @@ | ||
name: Coding Standards | ||
|
||
on: | ||
pull_request: | ||
push: | ||
|
||
jobs: | ||
coding-standards: | ||
name: Coding Standards | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Setup PHP | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: 8.1 | ||
|
||
- name: Install dependencies | ||
if: steps.composer-cache.outputs.cache-hit != 'true' | ||
run: composer install --prefer-dist --no-progress --no-suggest | ||
|
||
- name: Check codestyle | ||
run: composer run-script 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
name: mutation test | ||
|
||
on: | ||
push: | ||
|
||
pull_request: | ||
|
||
jobs: | ||
mutation: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
# Setup PHP versions, run checks | ||
- name: PHP setup | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php: >- | ||
['8.2'] | ||
- 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 | ||
if: steps.composer-cache.outputs.cache-hit != 'true' | ||
run: composer install --prefer-dist --no-progress --no-suggest | ||
|
||
- name: Run mutation | ||
run: ./vendor/bin/infection | ||
env: | ||
STRYKER_DASHBOARD_API_KEY: ${{ secrets.STRYKER_DASHBOARD_API_KEY }} |
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,5 +1,7 @@ | ||
.DS_Store | ||
.idea | ||
vendor | ||
.phpunit.result.cache | ||
.phpunit.cache/ | ||
.DS_Store | ||
infection.json | ||
|
||
/.cache | ||
/.tmp | ||
/vendor |
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 |
---|---|---|
@@ -0,0 +1,27 @@ | ||
#!/usr/bin/env php | ||
<?php | ||
|
||
function deleteDir($dirPath) | ||
{ | ||
if (!str_ends_with($dirPath, '/')) { | ||
$dirPath .= '/'; | ||
} | ||
$files = glob($dirPath . '*', GLOB_MARK); | ||
|
||
foreach ($files as $file) { | ||
echo 'Remove' . $file . PHP_EOL; | ||
if (is_dir($file)) { | ||
deleteDir($file); | ||
} else { | ||
unlink($file); | ||
} | ||
} | ||
rmdir($dirPath); | ||
} | ||
|
||
if (file_exists(__DIR__ . '/../.cache')) { | ||
deleteDir(__DIR__ . '/../.cache'); | ||
} elseif (file_exists(__DIR__ . '/../vendor/yzen.dev/plain-to-class/.cache')) { | ||
deleteDir(__DIR__ . '/../vendor/yzen.dev/plain-to-class/.cache'); | ||
} | ||
exit(0); |
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,7 @@ | ||
@echo off | ||
|
||
if "%PHP_PEAR_PHP_BIN%" neq "" ( | ||
set PHPBIN=%PHP_PEAR_PHP_BIN% | ||
) else set PHPBIN=php | ||
|
||
"%PHPBIN%" "%~dp0\plain-to-class-clear" %* |
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.