This repository has been archived by the owner on Nov 26, 2019. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 1
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
132dfaa
commit 2c40b8f
Showing
14 changed files
with
165 additions
and
170 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,11 +1,8 @@ | ||
/.dependabot/ export-ignore | ||
/.github/ export-ignore | ||
/.travis/ export-ignore | ||
/test export-ignore | ||
/test/ export-ignore | ||
/.editorconfig export-ignore | ||
/.gitattributes export-ignore | ||
/.gitignore export-ignore | ||
/.php_cs export-ignore | ||
/.travis.yml export-ignore | ||
/Makefile export-ignore | ||
/phpunit.xml 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
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,89 @@ | ||
# 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 | ||
|
||
- name: "Run localheinz/composer-normalize" | ||
run: php7.1 $(which composer) normalize --dry-run | ||
|
||
- name: "Run friendsofphp/php-cs-fixer" | ||
run: php7.1 vendor/bin/php-cs-fixer fix --diff --dry-run --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 --prefer-lowest | ||
|
||
- name: "Install locked dependencies with composer" | ||
if: matrix.dependencies == 'locked' | ||
run: ${{ matrix.php-binary }} $(which composer) install | ||
|
||
- name: "Install highest dependencies with composer" | ||
if: matrix.dependencies == 'highest' | ||
run: ${{ matrix.php-binary }} $(which composer) update | ||
|
||
- name: "Run unit tests with phpunit/phpunit" | ||
run: ${{ matrix.php-binary }} vendor/bin/phpunit --configuration=test/Unit/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 | ||
|
||
- 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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# 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
This file was deleted.
Oops, something went wrong.
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,9 @@ | ||
# Changelog | ||
|
||
All notable changes to this project will be documented in this file. | ||
|
||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). | ||
|
||
## Unreleased | ||
|
||
For a full diff see [`1.23.0...master`](https://github.com/localheinz/php-cs-fixer-config/compare/1.23.0...master). |
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.