-
Notifications
You must be signed in to change notification settings - Fork 0
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
0 parents
commit e00ba79
Showing
30 changed files
with
6,986 additions
and
0 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 @@ | ||
root = true | ||
|
||
[*] | ||
charset = utf-8 | ||
end_of_line = lf | ||
indent_size = 4 | ||
indent_style = space | ||
insert_final_newline = false | ||
max_line_length = 80 | ||
tab_width = 4 | ||
|
||
[{*.json}] | ||
indent_style = tab |
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,24 @@ | ||
#!/usr/bin/env bash | ||
|
||
# Create a regex for a conventional commit. | ||
convetional_commit_regex="^(feat|fix|docs|style|refactor|perf|test|build|ci|chore|revert)(\([a-z \-]+\))?!?: .+$" | ||
|
||
# Get the commit message (the parameter we're given is just the path to the | ||
# temporary file which holds the message). | ||
commit_message=$(cat "$1") | ||
|
||
# Check the message, if we match, all good baby. | ||
if [[ "$commit_message" =~ $convetional_commit_regex ]]; then | ||
echo -e "\e[32mCommit message meets Conventional Commit standards...\e[0m" | ||
exit 0 | ||
fi | ||
|
||
# Uh-oh, this is not a conventional commit, show an example and link to the spec. | ||
echo -e "\e[31mThe commit message does not meet the Conventional Commit standard\e[0m" | ||
echo "An example of a valid message is: " | ||
echo " feat(login): add the 'remember me' button" | ||
echo "More details at: https://www.conventionalcommits.org/en/v1.0.0/#summary" | ||
exit 1 | ||
|
||
|
||
|
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 @@ | ||
# To get started with Dependabot version updates, you'll need to specify which | ||
# package ecosystems to update and where the package manifests are located. | ||
# Please see the documentation for all configuration options: | ||
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates | ||
|
||
version: 2 | ||
updates: | ||
- package-ecosystem: "composer" # See documentation for possible values | ||
directory: "/" # Location of package manifests | ||
schedule: | ||
interval: "weekly" |
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 @@ | ||
name: (📡) Create GitHub Release Draft | ||
|
||
on: | ||
push: | ||
tags: | ||
- '[0-9]+.[0-9]+.[0-9]+' | ||
workflow_dispatch: | ||
|
||
jobs: | ||
create-github-release: | ||
uses: sitepark/github-project-workflow/.github/workflows/create-github-release-draft.yml@main |
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,14 @@ | ||
name: (▶) Create Release | ||
|
||
on: workflow_dispatch | ||
|
||
jobs: | ||
release: | ||
uses: sitepark/github-project-workflow/.github/workflows/composer-release.yml@main | ||
with: | ||
botName: "sitepark-bot" | ||
botEmail: "opensource@sitepark.com" | ||
secrets: | ||
# Sitepark-BOT personal access token | ||
BOT_PAT: ${{ secrets.BOT_PAT }} | ||
|
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,14 @@ | ||
name: (📡) Verify | ||
|
||
on: | ||
push: | ||
branches-ignore: | ||
- 'dependabot/**' | ||
pull_request: | ||
branches-ignore: | ||
- 'main' | ||
workflow_dispatch: | ||
|
||
jobs: | ||
verify: | ||
uses: sitepark/github-project-workflow/.github/workflows/composer-verify.yml@release/1.x |
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 @@ | ||
/vendor | ||
/vendor.orig | ||
.idea | ||
/var/cache/* | ||
!var/cache/.gitkeep | ||
/var/log/* | ||
!var/log/.gitkeep | ||
/tools | ||
.phpactor.json |
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,7 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<phive xmlns="https://phar.io/phive"> | ||
<phar name="phpstan" version="^1.10.22" location="./tools/phpstan" copy="false" installed="1.10.22"/> | ||
<phar name="composer-normalize" version="^2.32.0" location="./tools/composer-normalize" copy="false" installed="2.32.0"/> | ||
<phar name="phpunit" version="^10.4.0" location="./tools/phpunit.phar" copy="true" installed="10.4.1"/> | ||
<phar name="overtrue/phplint" version="^9.0.4" location="./tools/phplint" copy="false" installed="9.0.4"/> | ||
</phive> |
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,6 @@ | ||
path: ./src | ||
jobs: 10 | ||
cache: var/cache/phplint.cache | ||
extensions: | ||
- php | ||
warning: 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 @@ | ||
# Changelog |
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,21 @@ | ||
MIT License | ||
|
||
Copyright (c) 2020 Sitepark GmbH | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. |
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,8 @@ | ||
[![codecov](https://codecov.io/gh/sitepark/atoolo-ies-webnode-bundle/graph/badge.svg?token=hKftWsicHB)](https://codecov.io/gh/sitepark/atoolo-ies-webnode-bundle) | ||
![phpstan](https://img.shields.io/badge/PHPStan-level%209-brightgreen) | ||
![php](https://img.shields.io/badge/PHP-8.1-blue) | ||
![php](https://img.shields.io/badge/PHP-8.2-blue) | ||
![php](https://img.shields.io/badge/PHP-8.3-blue) | ||
|
||
# Atoolo deployment bundle | ||
|
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,90 @@ | ||
{ | ||
"name": "atoolo/deployment-bundle", | ||
"description": "Symfony bundle to react to the deploy and undeploy of a project.", | ||
"license": "MIT", | ||
"type": "symfony-bundle", | ||
"authors": [ | ||
{ | ||
"name": "veltrup", | ||
"email": "veltrup@sitepark.com" | ||
} | ||
], | ||
"require": { | ||
"php": ">=8.1 <8.4.0", | ||
"symfony/config": "^6.3 || ^7.0", | ||
"symfony/dependency-injection": "^6.3 || ^7.0", | ||
"symfony/framework-bundle": "^7.0", | ||
"symfony/http-kernel": "^6.3 || ^7.0", | ||
"symfony/messenger": "^7.0", | ||
"symfony/yaml": "^6.3 || ^7.0" | ||
}, | ||
"require-dev": { | ||
"dealerdirect/phpcodesniffer-composer-installer": "^1.0", | ||
"infection/infection": "^0.27.6", | ||
"phpcompatibility/php-compatibility": "^9.3", | ||
"phpunit/phpunit": "^10.4", | ||
"roave/security-advisories": "dev-latest", | ||
"squizlabs/php_codesniffer": "^3.7" | ||
}, | ||
"repositories": {}, | ||
"minimum-stability": "dev", | ||
"prefer-stable": true, | ||
"autoload": { | ||
"psr-4": { | ||
"Atoolo\\Deployment\\": "src/" | ||
} | ||
}, | ||
"autoload-dev": { | ||
"psr-4": { | ||
"Atoolo\\Deployment\\Test\\": "test/" | ||
} | ||
}, | ||
"archive": { | ||
"exclude": [ | ||
"/*", | ||
"/.*", | ||
"!/composer.json", | ||
"!/config", | ||
"!/src" | ||
] | ||
}, | ||
"config": { | ||
"allow-plugins": { | ||
"infection/extension-installer": true, | ||
"dealerdirect/phpcodesniffer-composer-installer": true | ||
}, | ||
"optimize-autoloader": true, | ||
"preferred-install": { | ||
"*": "dist" | ||
}, | ||
"sort-packages": true | ||
}, | ||
"scripts": { | ||
"post-install-cmd": "phive --no-progress install --force-accept-unsigned --trust-gpg-keys C00543248C87FB13,4AA394086372C20A,CF1A108D0E7AE720,51C67305FFC2E5C0", | ||
"analyse": [ | ||
"@analyse:phplint", | ||
"@analyse:phpstan", | ||
"@analyse:phpcs", | ||
"@analyse:compatibilitycheck" | ||
], | ||
"analyse:compatibilitycheck": "./vendor/bin/phpcs --standard=./phpcs.compatibilitycheck.xml", | ||
"analyse:phpcs": "./vendor/bin/phpcs", | ||
"analyse:phplint": "./tools/phplint", | ||
"analyse:phpstan": "./tools/phpstan analyse", | ||
"cs-fix": [ | ||
"@cs-fix:phpcbf" | ||
], | ||
"cs-fix:phpcbf": "./vendor/bin/phpcbf", | ||
"report": [ | ||
"@report:phpcs", | ||
"@report:phpstan" | ||
], | ||
"report:phpcs": "./vendor/bin/phpcs || exit 0", | ||
"report:phpstan": "./tools/phpstan analyse --no-progress --no-ansi --no-interaction --error-format=checkstyle > ./var/log/phpstan-report.xml || exit 0", | ||
"test": [ | ||
"@test:phpunit" | ||
], | ||
"test:infection": "vendor/bin/infection --threads=8 --no-progress --only-covered -s || exit 0", | ||
"test:phpunit": "./tools/phpunit.phar -c phpunit.xml --coverage-text" | ||
} | ||
} |
Oops, something went wrong.