-
-
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.
Enhancement: Synchronize project tooling configuration with localhein…
…z/php-library-template
- Loading branch information
1 parent
4862b71
commit b391886
Showing
18 changed files
with
305 additions
and
206 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,13 @@ | ||
# https://dependabot.com/docs/config-file/ | ||
|
||
version: 1 | ||
|
||
update_configs: | ||
- default_assignees: | ||
- "localheinz" | ||
default_reviewers: | ||
- "localheinz" | ||
directory: "/" | ||
package_manager: "php:composer" | ||
update_schedule: "live" | ||
version_requirement_updates: "increase_versions" |
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,11 +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 | ||
/phpbench.json 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
# https://github.com/probot/settings | ||
|
||
branches: | ||
- name: master | ||
protection: | ||
enforce_admins: false | ||
required_pull_request_reviews: | ||
dismiss_stale_reviews: true | ||
require_code_owner_reviews: true | ||
required_approving_review_count: 1 | ||
required_status_checks: | ||
contexts: | ||
- "Coding Standards" | ||
- "Tests (php7.1, lowest)" | ||
- "Tests (php7.1, locked)" | ||
- "Tests (php7.1, highest)" | ||
- "Tests (php7.2, lowest)" | ||
- "Tests (php7.2, locked)" | ||
- "Tests (php7.2, highest)" | ||
- "Tests (php7.3, lowest)" | ||
- "Tests (php7.3, locked)" | ||
- "Tests (php7.3, highest)" | ||
- "Code Coverage" | ||
- "Mutation Tests" | ||
- "codecov/patch" | ||
- "codecov/project" | ||
strict: false | ||
restrictions: null | ||
|
||
labels: | ||
- name: bug | ||
color: ee0701 | ||
|
||
- name: dependencies | ||
color: 0366d6 | ||
|
||
- name: enhancement | ||
color: 0e8a16 | ||
|
||
- name: question | ||
color: cc317c | ||
|
||
- name: security | ||
color: ee0701 | ||
|
||
- name: stale | ||
color: eeeeee | ||
|
||
repository: | ||
allow_merge_commit: true | ||
allow_rebase_merge: false | ||
allow_squash_merge: false | ||
default_branch: master | ||
description: ":page_with_curl: Provides a JSON printer, allowing for flexible indentation." | ||
has_downloads: true | ||
has_issues: true | ||
has_pages: false | ||
has_projects: false | ||
has_wiki: false | ||
name: json-printer | ||
private: false |
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,107 @@ | ||
# 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 $(which composer) validate --strict | ||
|
||
- name: "Install locked dependencies with composer" | ||
run: php7.1 $(which composer) install --no-interaction --no-progress --no-suggest | ||
|
||
- name: "Run friendsofphp/php-cs-fixer" | ||
run: php7.1 vendor/bin/php-cs-fixer fix --config=.php_cs --diff --diff-format=udiff --using-cache=no --verbose | ||
|
||
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 }} $(which composer) update --no-interaction --no-progress --no-suggest --prefer-lowest | ||
|
||
- name: "Install locked dependencies with composer" | ||
if: matrix.dependencies == 'locked' | ||
run: ${{ matrix.php-binary }} $(which composer) install --no-interaction --no-progress --no-suggest | ||
|
||
- name: "Install highest dependencies with composer" | ||
if: matrix.dependencies == 'highest' | ||
run: ${{ matrix.php-binary }} $(which 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 unit tests with phpunit/phpunit" | ||
run: ${{ matrix.php-binary }} vendor/bin/phpunit --configuration=test/Unit/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 $(which composer) install --no-interaction --no-progress --no-suggest | ||
|
||
- name: "Dump Xdebug filter with phpunit/phpunit" | ||
run: php7.3 vendor/bin/phpunit --configuration=test/Unit/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/Unit/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 }} | ||
|
||
mutation-tests: | ||
name: "Mutation Tests" | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: "Checkout" | ||
uses: actions/checkout@master | ||
|
||
- name: "Install locked dependencies with composer" | ||
run: php7.3 $(which composer) install --no-interaction --no-progress --no-suggest | ||
|
||
- name: "Run mutation tests with infection/infection" | ||
run: php7.3 vendor/bin/infection --ignore-msi-with-no-mutations --min-covered-msi=80 --min-msi=80 |
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 @@ | ||
# https://github.com/actions/stale | ||
|
||
name: "Close stale issues and pull requests" | ||
|
||
on: | ||
schedule: | ||
- cron: "0 * * * *" | ||
|
||
jobs: | ||
stale: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/stale@v1 | ||
with: | ||
repo-token: ${{ secrets.GITHUB_TOKEN }} | ||
days-before-stale: 60 | ||
days-before-close: 5 | ||
stale-issue-label: 'stale' | ||
stale-issue-message: > | ||
This issue has been automatically marked as stale because it has not had | ||
recent activity. It will be closed if no further activity occurs. Thank you | ||
for your contributions. | ||
stale-pr-message: > | ||
This PR has been automatically marked as stale because it has not had | ||
recent activity. It will be closed if no further activity occurs. Thank you | ||
for your contributions. | ||
stale-pr-label: 'stale' |
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,3 +1,2 @@ | ||
/.build/ | ||
/vendor/ | ||
/.php_cs.cache | ||
/infection-log.txt |
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.