Skip to content

Commit e830fa6

Browse files
Merge branch 'release/6.0.0'
2 parents 729a851 + d105e85 commit e830fa6

27 files changed

+902
-746
lines changed

.editorconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,5 @@ trim_trailing_whitespace = true
1414
[*.md]
1515
trim_trailing_whitespace = false
1616

17-
[*.yml]
17+
[*.{yml,yaml}]
1818
indent_size = 2

.gitattributes

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Reduce Composer package download by removing obsolete files
2+
3+
/.editorconfig export-ignore
4+
/.gitattributes export-ignore
5+
/.github export-ignore
6+
/.gitignore export-ignore
7+
/.php_cs.dist.php export-ignore
8+
/CODE_OF_CONDUCT.md export-ignore
9+
/CONTRIBUTING.md export-ignore
10+
/phpunit.xml.dist export-ignore
11+
/tests export-ignore

.github/ISSUE_TEMPLATE/BUG_REPORT.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
---
2+
name: Bug report
3+
about: Create a report to help us improve this project
4+
title: ''
5+
labels: bug
6+
assignees: sebastiaanluca
7+
---
8+
9+
### Description
10+
11+
### Expected result
12+
13+
### Steps to reproduce
14+
15+
Please provide a fully working repository that reproduces the bug.
16+
17+
### Additional info
18+
19+
Logs, error output, setup, environment, packages, versions, etc.
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
---
2+
name: Feature request
3+
about: Suggest an idea for this project
4+
title: ''
5+
labels: feature
6+
assignees: sebastiaanluca
7+
---
8+
9+
### Description
10+
11+
A clear and concise description of the problem or proposal.
12+
13+
### Suggested solution
14+
15+
A clear and concise description of what you want to happen.
16+
17+
### Possible alternatives
18+
19+
A clear and concise description of any alternative solutions or features you've considered.
20+
21+
### Additional context
22+
23+
Any other context or screenshots to help situate and understand the requested feature.

PULL_REQUEST_TEMPLATE.md renamed to .github/PULL_REQUEST_TEMPLATE.md

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
---
2+
name: Pull request
3+
about: Create a new pull request to merge code into the main branch
4+
title: 'A short, descriptive title'
5+
labels: ''
6+
assignees: sebastiaanluca
7+
---
8+
19
## PR Type
210

311
What kind of pull request is this? Put an `x` in all the boxes that apply:
@@ -8,17 +16,16 @@ What kind of pull request is this? Put an `x` in all the boxes that apply:
816
- [ ] Change feature (non-breaking change which either changes or refactors existing functionality)
917
- [ ] Breaking change (fix or feature that would cause existing functionality to change)
1018

11-
## What does it change?
12-
13-
Describe your changes in detail.
19+
---
1420

15-
## Why this PR?
21+
### Description
1622

17-
Why is this change required? What problem does it solve?
23+
Clearly describe what this pull request changes and why.
1824

19-
## How has this been tested?
25+
### Steps to follow to verify functionality
2026

21-
Please describe in detail how you tested your changes (or are planning on testing them).
27+
1. Clearly state which actions should be performed to fully and correctly review this issue.
28+
2.
2229

2330
## Checklist
2431

@@ -32,3 +39,4 @@ To facilitate merging your change and the approval of this PR, please make sure
3239
- If the change to the code requires a change to the documentation, it has been updated accordingly
3340

3441
If you're unsure about any of these, don't hesitate to ask. We're here to help!
42+

.github/workflows/test.yml

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
name: Check code
2+
3+
on:
4+
push:
5+
pull_request:
6+
7+
jobs:
8+
9+
check:
10+
name: Run PHP tests - PHP ${{ matrix.php }} - ${{ matrix.dependency-version }}
11+
runs-on: ${{ matrix.os }}
12+
strategy:
13+
fail-fast: false
14+
matrix:
15+
php: [8.0, 8.1]
16+
dependency-version: [prefer-lowest, prefer-stable]
17+
os: [ubuntu-latest]
18+
19+
steps:
20+
- name: Check out code
21+
uses: actions/checkout@v2
22+
23+
- name: Cache PHP dependencies
24+
uses: actions/cache@v2
25+
with:
26+
path: '**/vendor'
27+
key: ${{ runner.os }}-vendor-cache-${{ hashFiles('**/composer.lock') }}
28+
restore-keys: |
29+
${{ runner.os }}-vendor-cache-
30+
31+
- name: Cache Composer dependencies
32+
uses: actions/cache@v2
33+
with:
34+
path: ~/.composer/cache/files
35+
key: composer-${{ runner.os }}-php-${{ matrix.php }}-${{ hashFiles('composer.json') }}
36+
37+
- name: Validate Composer configuration file
38+
run: composer validate --strict
39+
40+
- name: Set up PHP
41+
uses: shivammathur/setup-php@v2
42+
with:
43+
php-version: ${{ matrix.php }}
44+
extensions: mbstring
45+
coverage: none
46+
47+
- name: Install dependencies
48+
run: composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction --no-progress --optimize-autoloader
49+
50+
- name: Lint code
51+
run: vendor/bin/php-cs-fixer fix --dry-run --diff
52+
53+
- name: Run tests
54+
run: vendor/bin/phpunit

.gitignore

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
/vendor
2-
composer.phar
1+
.idea
2+
.php-cs-fixer.cache
3+
.phpunit.result.cache
34
composer.lock
4-
.DS_Store
5+
composer.phar
6+
phpunit.xml
7+
vendor/

0 commit comments

Comments
 (0)