Skip to content

Commit

Permalink
Merge pull request #55 from Spomky-Labs/3.0.x-merge-up-into-3.1.x_QtJ…
Browse files Browse the repository at this point in the history
…dkRjD

Merge release 3.0.4 into 3.1.x
  • Loading branch information
Spomky authored Jan 29, 2024
2 parents 4765706 + e5b3d43 commit 448ba95
Show file tree
Hide file tree
Showing 46 changed files with 809 additions and 654 deletions.
52 changes: 46 additions & 6 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -1,24 +1,64 @@
# https://EditorConfig.org
# EditorConfig helps developers define and maintain consistent
# coding styles between different editors and IDEs
# editorconfig.org

root = true

[*]
# Change these settings to your own preference
indent_style = space
# Reduce tab size on GitHub
indent_size = 4

# We recommend you to keep these unchanged
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
block_comment_start = /*
block_comment = *
block_comment_end = */

[{*.yml,*.yaml}]
[*.{js,html,ts,tsx}]
indent_size = 2

[*.json]
indent_size = 2

[*.md]
trim_trailing_whitespace = false

[*.sh]
indent_style = tab

[*.xml{,.dist}]
indent_style = space
indent_size = 4

[*.{yaml,yml}]
trim_trailing_whitespace = false

[.github/workflows/*.yml]
indent_size = 2

[deptrac.yaml]
indent_size = 2

[.gitmodules]
indent_style = tab

[.php_cs{,.dist}]
indent_style = space
indent_size = 4

[composer.json]
indent_size = 4

[{,docker-}compose{,.*}.{yaml,yml}]
indent_style = space
indent_size = 2

[{,*.*}Dockerfile]
indent_style = tab

[{,*.*}Caddyfile]
indent_style = tab

[Makefile]
indent_style = tab
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,6 @@
/infection.json.dist export-ignore
/Makefile export-ignore
/phpstan.neon export-ignore
/phpstan-baseline.neon export-ignore
/phpunit.xml.dist export-ignore
/rector.php export-ignore
50 changes: 25 additions & 25 deletions .github/ISSUE_TEMPLATE/1_Bug_report.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,41 +2,41 @@ name: 🐛 Bug Report
description: ⚠️ NEVER report security issues, email security AT spomky-labs.com instead
labels: Bug
body:
- type: input
- type: input
id: affected-versions
attributes:
label: Version(s) affected
placeholder: x.y.z
label: Version(s) affected
placeholder: x.y.z
validations:
required: true
- type: textarea
required: true
- type: textarea
id: description
attributes:
label: Description
description: A clear and concise description of the problem
label: Description
description: A clear and concise description of the problem
validations:
required: true
- type: textarea
required: true
- type: textarea
id: how-to-reproduce
attributes:
label: How to reproduce
description: |
⚠️ This is the most important part of the report ⚠️
Without a way to easily reproduce your issue, there is little chance we will be able to help you and work on a fix.
Please, take the time to show us some code and/or config that is needed for others to reproduce the problem easily.
Most of the time, creating a "bug reproducer" is the best way to help us and increases the chances someone
will have a look at it.
label: How to reproduce
description: |
⚠️ This is the most important part of the report ⚠️
Without a way to easily reproduce your issue, there is little chance we will be able to help you and work on a fix.
Please, take the time to show us some code and/or config that is needed for others to reproduce the problem easily.
Most of the time, creating a "bug reproducer" is the best way to help us and increases the chances someone
will have a look at it.
validations:
required: true
- type: textarea
required: true
- type: textarea
id: possible-solution
attributes:
label: Possible Solution
description: |
Optional: only if you have suggestions on a fix/reason for the bug
Don't hesitate to create a pull request with your solution, it helps get faster feedback.
- type: textarea
label: Possible Solution
description: |
Optional: only if you have suggestions on a fix/reason for the bug
Don't hesitate to create a pull request with your solution, it helps get faster feedback.
- type: textarea
id: additional-context
attributes:
label: Additional Context
description: "Optional: any other context about the problem: log messages, screenshots, etc."
label: Additional Context
description: "Optional: any other context about the problem: log messages, screenshots, etc."
18 changes: 9 additions & 9 deletions .github/ISSUE_TEMPLATE/2_Feature_request.yaml
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
name: 🚀 Feature Request
description: RFC and ideas for new features and improvements
body:
- type: textarea
- type: textarea
id: description
attributes:
label: Description
description: A clear and concise description of the new feature
label: Description
description: A clear and concise description of the new feature
validations:
required: true
- type: textarea
required: true
- type: textarea
id: example
attributes:
label: Example
description: |
A simple example of the new feature in action (include PHP code, YAML config, etc.)
If the new feature changes an existing feature, include a simple before/after comparison.
label: Example
description: |
A simple example of the new feature in action (include PHP code, YAML config, etc.)
If the new feature changes an existing feature, include a simple before/after comparison.
8 changes: 4 additions & 4 deletions .github/ISSUE_TEMPLATE/3_Documentation.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
name: 📖 Documentation Issue
description: To report typo or obsolete section in the documentation
body:
- type: textarea
- type: textarea
id: description
attributes:
label: Description
description: A clear and concise description of the error you found in the documentation
label: Description
description: A clear and concise description of the error you found in the documentation
validations:
required: true
required: true
8 changes: 4 additions & 4 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
blank_issues_enabled: false
contact_links:
- name: Support Question
- name: Support Question
url: https://spomky-labs.com/contact/
about: |
We use GitHub issues only to discuss about bugs and new features.
For this kind of questions about using the framework or third-party bundles,
please email us contact AT spomky-labs.com for quoting
We use GitHub issues only to discuss about bugs and new features.
For this kind of questions about using the framework or third-party bundles,
please email us contact AT spomky-labs.com for quoting
2 changes: 1 addition & 1 deletion .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Target branch:
Target branch:
Resolves issue # <!-- #-prefixed issue number(s), if any -->

<!-- replace space with "x" in square brackets: [x] -->
Expand Down
12 changes: 6 additions & 6 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
version: 2
updates:
- package-ecosystem: "composer"
- package-ecosystem: "composer"
directory: "/"
schedule:
interval: "weekly"
day: "friday"
interval: "weekly"
day: "friday"
versioning-strategy: "widen"
open-pull-requests-limit: 20
allow:
- dependency-type: all
- dependency-type: all
labels: [ "Dependencies" ]

- package-ecosystem: "github-actions"
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "monthly"
interval: "monthly"
open-pull-requests-limit: 20
labels: [ "Dependencies" ]
6 changes: 3 additions & 3 deletions .github/stale.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ daysUntilStale: 60
daysUntilClose: 7
staleLabel: wontfix
markComment: >
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.
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.
closeComment: false
15 changes: 7 additions & 8 deletions .github/workflows/integrate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
- name: "Set up PHP"
uses: "shivammathur/setup-php@v2"
with:
php-version: "8.1"
php-version: "8.3"
coverage: "none"

- name: "Checkout code"
Expand All @@ -56,6 +56,8 @@ jobs:
- "ubuntu-latest"
php-version:
- "8.1"
- "8.2"
- "8.3"
dependencies:
- "lowest"
- "highest"
Expand Down Expand Up @@ -98,7 +100,7 @@ jobs:
- name: "Set up PHP"
uses: "shivammathur/setup-php@v2"
with:
php-version: "8.1"
php-version: "8.3"
extensions: "ctype, dom, json, libxml, mbstring, openssl, phar, simplexml, tokenizer, xml, xmlwriter"
coverage: "none"

Expand Down Expand Up @@ -130,16 +132,13 @@ jobs:
- name: "Set up PHP"
uses: "shivammathur/setup-php@v2"
with:
php-version: "8.1"
php-version: "8.3"
extensions: "ctype, dom, json, libxml, mbstring, openssl, phar, simplexml, tokenizer, xml, xmlwriter"
coverage: "none"

- name: "Checkout code"
uses: "actions/checkout@v3"

- name: "Check adherence to EditorConfig"
uses: "greut/eclint-action@v0"

- name: "Install dependencies"
uses: "ramsey/composer-install@v2"
with:
Expand All @@ -163,7 +162,7 @@ jobs:
- name: "Set up PHP"
uses: "shivammathur/setup-php@v2"
with:
php-version: "8.1"
php-version: "8.3"
extensions: "ctype, dom, json, libxml, mbstring, openssl, phar, simplexml, tokenizer, xml, xmlwriter"
coverage: "xdebug"

Expand Down Expand Up @@ -192,7 +191,7 @@ jobs:
- name: "Set up PHP"
uses: "shivammathur/setup-php@v2"
with:
php-version: "8.1"
php-version: "8.3"
extensions: "ctype, dom, json, libxml, mbstring, openssl, phar, simplexml, tokenizer, xml, xmlwriter"
coverage: "xdebug"

Expand Down
46 changes: 44 additions & 2 deletions .github/workflows/release-on-milestone-closed.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ on:

jobs:
release:
name: "GIT tag, release & create merge-up PR"
name: "Release"
runs-on: ubuntu-latest

steps:
- name: "Checkout"
uses: "actions/checkout@v3"
uses: "actions/checkout@v4"

- name: "Release"
uses: "laminas/[email protected]"
Expand All @@ -27,6 +27,16 @@ jobs:
"GIT_AUTHOR_NAME": ${{ secrets.GIT_AUTHOR_NAME }}
"GIT_AUTHOR_EMAIL": ${{ secrets.GIT_AUTHOR_EMAIL }}

merge-up:
name: "Create Merge-Up Pull Request"
runs-on: ubuntu-latest
if: ${{ always() }}
needs: "release"

steps:
- name: "Checkout"
uses: "actions/checkout@v4"

- name: "Create Merge-Up Pull Request"
uses: "laminas/[email protected]"
with:
Expand All @@ -38,6 +48,16 @@ jobs:
"GIT_AUTHOR_NAME": ${{ secrets.GIT_AUTHOR_NAME }}
"GIT_AUTHOR_EMAIL": ${{ secrets.GIT_AUTHOR_EMAIL }}

switch:
name: "Create and/or Switch to new Release Branch"
runs-on: ubuntu-latest
if: ${{ always() }}
needs: "merge-up"

steps:
- name: "Checkout"
uses: "actions/checkout@v4"

- name: "Create and/or Switch to new Release Branch"
uses: "laminas/[email protected]"
with:
Expand All @@ -49,6 +69,18 @@ jobs:
"GIT_AUTHOR_NAME": ${{ secrets.GIT_AUTHOR_NAME }}
"GIT_AUTHOR_EMAIL": ${{ secrets.GIT_AUTHOR_EMAIL }}

bump:
name: "Bump Changelog Version On Originating Release Branch"
runs-on: ubuntu-latest
if: ${{ always() }}
needs: "switch"

steps:
- name: "Checkout"
uses: "actions/checkout@v4"
with:
fetch-depth: 0

- name: "Bump Changelog Version On Originating Release Branch"
uses: "laminas/[email protected]"
with:
Expand All @@ -60,6 +92,16 @@ jobs:
"GIT_AUTHOR_NAME": ${{ secrets.GIT_AUTHOR_NAME }}
"GIT_AUTHOR_EMAIL": ${{ secrets.GIT_AUTHOR_EMAIL }}

milestones:
name: "Create new milestones"
runs-on: ubuntu-latest
if: ${{ always() }}
needs: "bump"

steps:
- name: "Checkout"
uses: "actions/checkout@v4"

- name: "Create new milestones"
uses: "laminas/[email protected]"
with:
Expand Down
Loading

0 comments on commit 448ba95

Please sign in to comment.