Skip to content

Commit

Permalink
first commit
Browse files Browse the repository at this point in the history
  • Loading branch information
sitepark-veltrup committed May 21, 2024
0 parents commit e00ba79
Show file tree
Hide file tree
Showing 30 changed files with 6,986 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .editorconfig
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
24 changes: 24 additions & 0 deletions .githooks/commit-msg
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



11 changes: 11 additions & 0 deletions .github/dependabot.yml
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"
11 changes: 11 additions & 0 deletions .github/workflows/create-github-release-draft.yml
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
14 changes: 14 additions & 0 deletions .github/workflows/create-release.yml
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 }}

14 changes: 14 additions & 0 deletions .github/workflows/verify.yml
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
9 changes: 9 additions & 0 deletions .gitignore
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
7 changes: 7 additions & 0 deletions .phive/phars.xml
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>
6 changes: 6 additions & 0 deletions .phplint.yml
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
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Changelog
21 changes: 21 additions & 0 deletions LICENSE
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.
8 changes: 8 additions & 0 deletions README.md
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

90 changes: 90 additions & 0 deletions composer.json
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"
}
}
Loading

0 comments on commit e00ba79

Please sign in to comment.