-
Notifications
You must be signed in to change notification settings - Fork 0
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 #147 from milan-miscevic/skeleton-align
Align with future php-skeleton 1.0
- Loading branch information
Showing
19 changed files
with
815 additions
and
719 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 |
---|---|---|
@@ -1,9 +1,9 @@ | ||
version: 2 | ||
updates: | ||
- package-ecosystem: composer | ||
- package-ecosystem: "composer" | ||
directory: "/" | ||
open-pull-requests-limit: 10 | ||
schedule: | ||
interval: daily | ||
interval: "daily" | ||
time: "04:00" | ||
versioning-strategy: "increase" |
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,80 @@ | ||
name: "Test" | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- "master" | ||
push: | ||
branches: | ||
- "master" | ||
|
||
jobs: | ||
phpstan: | ||
name: "PHPStan static analysis" | ||
runs-on: "ubuntu-latest" | ||
|
||
strategy: | ||
matrix: | ||
php-version: | ||
- "8.1" | ||
|
||
steps: | ||
- uses: "shivammathur/setup-php@2.9.0" | ||
with: | ||
php-version: "${{ matrix.php-version }}" | ||
- uses: "actions/checkout@v2" | ||
- uses: "php-actions/composer@v1" | ||
- run: "vendor/bin/phpstan analyse" | ||
|
||
psalm: | ||
name: "Psalm static analysis" | ||
runs-on: "ubuntu-latest" | ||
|
||
strategy: | ||
matrix: | ||
php-version: | ||
- "8.1" | ||
|
||
steps: | ||
- uses: "shivammathur/setup-php@2.9.0" | ||
with: | ||
php-version: "${{ matrix.php-version }}" | ||
- uses: "actions/checkout@v2" | ||
- uses: "php-actions/composer@v1" | ||
- run: "vendor/bin/psalm --show-info=true --shepherd" | ||
|
||
standards: | ||
name: "PHP-CS-Fixer coding standards" | ||
runs-on: "ubuntu-latest" | ||
|
||
strategy: | ||
matrix: | ||
php-version: | ||
- "8.1" | ||
|
||
steps: | ||
- uses: "shivammathur/setup-php@2.9.0" | ||
with: | ||
php-version: "${{ matrix.php-version }}" | ||
- uses: "actions/checkout@v2" | ||
- uses: "php-actions/composer@v1" | ||
- run: "vendor/bin/php-cs-fixer fix --dry-run -v" | ||
|
||
unit: | ||
name: "PHPUnit unit tests" | ||
runs-on: "ubuntu-latest" | ||
|
||
strategy: | ||
matrix: | ||
php-version: | ||
- "7.4" | ||
- "8.0" | ||
- "8.1" | ||
|
||
steps: | ||
- uses: "shivammathur/setup-php@2.9.0" | ||
with: | ||
php-version: "${{ matrix.php-version }}" | ||
- uses: "actions/checkout@v2" | ||
- uses: "php-actions/composer@v1" | ||
- run: "vendor/bin/phpunit" |
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,7 +1,6 @@ | ||
/.php_cs.cache | ||
/.php-cs-fixer.cache | ||
/.phpunit.result.cache | ||
/.vscode | ||
/infection.log | ||
/phpstan.neon | ||
/phpunit.xml | ||
/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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
DOCKER=docker-compose -f ./docker/docker-compose.yml | ||
PHP=php81-cli | ||
|
||
coverage: | ||
$(DOCKER) run --rm $(PHP) php -dxdebug.mode=coverage ./vendor/bin/phpunit --coverage-text | ||
|
||
fix: | ||
$(DOCKER) run --rm $(PHP) ./vendor/bin/php-cs-fixer fix | ||
|
||
install: | ||
$(DOCKER) build | ||
$(DOCKER) run --rm $(PHP) composer install | ||
|
||
mutation: | ||
$(DOCKER) run --rm $(PHP) ./vendor/bin/infection --min-msi=80 | ||
|
||
phpstan: | ||
$(DOCKER) run --rm $(PHP) ./vendor/bin/phpstan analyse | ||
|
||
psalm: | ||
$(DOCKER) run --rm $(PHP) ./vendor/bin/psalm --show-info=true | ||
|
||
standards: | ||
$(DOCKER) run --rm $(PHP) ./vendor/bin/php-cs-fixer fix --dry-run -v | ||
|
||
test: standards phpstan psalm coverage | ||
|
||
unit: | ||
$(DOCKER) run --rm php74-cli ./vendor/bin/phpunit | ||
$(DOCKER) run --rm php80-cli ./vendor/bin/phpunit | ||
$(DOCKER) run --rm $(PHP) ./vendor/bin/phpunit |
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
Oops, something went wrong.