-
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.
- Loading branch information
Showing
27 changed files
with
902 additions
and
746 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 |
---|---|---|
|
@@ -14,5 +14,5 @@ trim_trailing_whitespace = true | |
[*.md] | ||
trim_trailing_whitespace = false | ||
|
||
[*.yml] | ||
[*.{yml,yaml}] | ||
indent_size = 2 |
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,11 @@ | ||
# Reduce Composer package download by removing obsolete files | ||
|
||
/.editorconfig export-ignore | ||
/.gitattributes export-ignore | ||
/.github export-ignore | ||
/.gitignore export-ignore | ||
/.php_cs.dist.php export-ignore | ||
/CODE_OF_CONDUCT.md export-ignore | ||
/CONTRIBUTING.md export-ignore | ||
/phpunit.xml.dist export-ignore | ||
/tests 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
--- | ||
name: Bug report | ||
about: Create a report to help us improve this project | ||
title: '' | ||
labels: bug | ||
assignees: sebastiaanluca | ||
--- | ||
|
||
### Description | ||
|
||
### Expected result | ||
|
||
### Steps to reproduce | ||
|
||
Please provide a fully working repository that reproduces the bug. | ||
|
||
### Additional info | ||
|
||
Logs, error output, setup, environment, packages, versions, etc. |
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,23 @@ | ||
--- | ||
name: Feature request | ||
about: Suggest an idea for this project | ||
title: '' | ||
labels: feature | ||
assignees: sebastiaanluca | ||
--- | ||
|
||
### Description | ||
|
||
A clear and concise description of the problem or proposal. | ||
|
||
### Suggested solution | ||
|
||
A clear and concise description of what you want to happen. | ||
|
||
### Possible alternatives | ||
|
||
A clear and concise description of any alternative solutions or features you've considered. | ||
|
||
### Additional context | ||
|
||
Any other context or screenshots to help situate and understand the requested feature. |
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,54 @@ | ||
name: Check code | ||
|
||
on: | ||
push: | ||
pull_request: | ||
|
||
jobs: | ||
|
||
check: | ||
name: Run PHP tests - PHP ${{ matrix.php }} - ${{ matrix.dependency-version }} | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
php: [8.0, 8.1] | ||
dependency-version: [prefer-lowest, prefer-stable] | ||
os: [ubuntu-latest] | ||
|
||
steps: | ||
- name: Check out code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Cache PHP dependencies | ||
uses: actions/cache@v2 | ||
with: | ||
path: '**/vendor' | ||
key: ${{ runner.os }}-vendor-cache-${{ hashFiles('**/composer.lock') }} | ||
restore-keys: | | ||
${{ runner.os }}-vendor-cache- | ||
- name: Cache Composer dependencies | ||
uses: actions/cache@v2 | ||
with: | ||
path: ~/.composer/cache/files | ||
key: composer-${{ runner.os }}-php-${{ matrix.php }}-${{ hashFiles('composer.json') }} | ||
|
||
- name: Validate Composer configuration file | ||
run: composer validate --strict | ||
|
||
- name: Set up PHP | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: ${{ matrix.php }} | ||
extensions: mbstring | ||
coverage: none | ||
|
||
- name: Install dependencies | ||
run: composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction --no-progress --optimize-autoloader | ||
|
||
- name: Lint code | ||
run: vendor/bin/php-cs-fixer fix --dry-run --diff | ||
|
||
- name: Run tests | ||
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,4 +1,7 @@ | ||
/vendor | ||
composer.phar | ||
.idea | ||
.php-cs-fixer.cache | ||
.phpunit.result.cache | ||
composer.lock | ||
.DS_Store | ||
composer.phar | ||
phpunit.xml | ||
vendor/ |
Oops, something went wrong.