-
-
Notifications
You must be signed in to change notification settings - Fork 21
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 #120 from localheinz/feature/synchronize
Enhancement: Synchronize project tooling configuration with localheinz/php-library-template
- Loading branch information
Showing
10 changed files
with
149 additions
and
204 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 |
---|---|---|
@@ -1,12 +1,10 @@ | ||
/.dependabot/ export-ignore | ||
/.github/ export-ignore | ||
/.travis/ export-ignore | ||
/test/ export-ignore | ||
/.editorconfig export-ignore | ||
/.gitattributes export-ignore | ||
/.gitignore export-ignore | ||
/.php_cs export-ignore | ||
/.travis.yml export-ignore | ||
/infection.json export-ignore | ||
/Makefile export-ignore | ||
/phpstan.neon export-ignore |
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,2 +1,3 @@ | ||
custom: https://www.buymeacoffee.com/localheinz | ||
github: localheinz | ||
patreon: localheinz |
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,110 @@ | ||
# https://help.github.com/en/categories/automating-your-workflow-with-github-actions | ||
|
||
on: | ||
- pull_request | ||
- push | ||
|
||
name: "Continuous Integration" | ||
|
||
jobs: | ||
coding-standards: | ||
name: "Coding Standards" | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: "Checkout" | ||
uses: actions/checkout@master | ||
|
||
- name: "Validate composer.json and composer.lock" | ||
run: php7.1 /usr/bin/composer validate --strict | ||
|
||
- name: "Install locked dependencies with composer" | ||
run: php7.1 /usr/bin/composer install --no-interaction --no-progress --no-suggest | ||
|
||
- name: "Run localheinz/composer-normalize" | ||
run: php7.1 /usr/bin/composer normalize --dry-run | ||
|
||
- name: "Run friendsofphp/php-cs-fixer for source" | ||
run: php7.1 vendor/bin/php-cs-fixer fix --config=.php_cs --diff --diff-format=udiff --using-cache=no --verbose | ||
|
||
- name: "Run friendsofphp/php-cs-fixer for test fixtures" | ||
run: php7.1 vendor/bin/php-cs-fixer fix --config=.php_cs.fixture --diff --diff-format=udiff --using-cache=no --verbose | ||
|
||
static-code-analysis: | ||
name: "Static Code Analysis" | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: "Checkout" | ||
uses: actions/checkout@master | ||
|
||
- name: "Install locked dependencies with composer" | ||
run: php7.3 /usr/bin/composer install --no-interaction --no-progress --no-suggest | ||
|
||
- name: "Run phpstan/phpstan" | ||
run: php7.3 vendor/bin/phpstan analyse --configuration=phpstan.neon | ||
|
||
tests: | ||
name: "Tests" | ||
|
||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
matrix: | ||
php-binary: | ||
- php7.1 | ||
- php7.2 | ||
- php7.3 | ||
|
||
dependencies: | ||
- lowest | ||
- locked | ||
- highest | ||
|
||
steps: | ||
- name: "Checkout" | ||
uses: actions/checkout@master | ||
|
||
- name: "Install lowest dependencies with composer" | ||
if: matrix.dependencies == 'lowest' | ||
run: ${{ matrix.php-binary }} /usr/bin/composer update --prefer-lowest --no-interaction --no-progress --no-suggest | ||
|
||
- name: "Install locked dependencies with composer" | ||
if: matrix.dependencies == 'locked' | ||
run: ${{ matrix.php-binary }} /usr/bin/composer install --no-interaction --no-progress --no-suggest | ||
|
||
- name: "Install highest dependencies with composer" | ||
if: matrix.dependencies == 'highest' | ||
run: ${{ matrix.php-binary }} /usr/bin/composer update --no-interaction --no-progress --no-suggest | ||
|
||
- name: "Run auto-review tests with phpunit/phpunit" | ||
run: ${{ matrix.php-binary }} vendor/bin/phpunit --configuration=test/AutoReview/phpunit.xml | ||
|
||
- name: "Run integration tests with phpunit/phpunit" | ||
run: ${{ matrix.php-binary }} vendor/bin/phpunit --configuration=test/Integration/phpunit.xml | ||
|
||
code-coverage: | ||
name: "Code Coverage" | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: "Checkout" | ||
uses: actions/checkout@master | ||
|
||
- name: "Install locked dependencies with composer" | ||
run: php7.3 /usr/bin/composer install --no-interaction --no-progress --no-suggest | ||
|
||
- name: "Dump Xdebug filter with phpunit/phpunit" | ||
run: php7.3 vendor/bin/phpunit --configuration=test/Integration/phpunit.xml --dump-xdebug-filter=.build/phpunit/xdebug-filter.php | ||
|
||
- name: "Collect code coverage with Xdebug and phpunit/phpunit" | ||
run: php7.3 vendor/bin/phpunit --configuration=test/Integration/phpunit.xml --coverage-clover=build/logs/clover.xml --prepend=.build/phpunit/xdebug-filter.php | ||
|
||
- name: "Download code coverage uploader for Codecov.io" | ||
run: curl -s https://codecov.io/bash -o codecov | ||
|
||
- name: "Send code coverage report to Codecov.io" | ||
run: bash codecov -t ${{ secrets.CODECOV_TOKEN }} |
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.
Oops, something went wrong.