Skip to content

Commit 27ee7a7

Browse files
committed
Added monorepo tools and settings
1 parent 1ec7b67 commit 27ee7a7

39 files changed

+12775
-0
lines changed

‎.github/PULL_REQUEST_TEMPLATE.md‎

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
<!-- Bellow section will be used to automatically generate changelog, please do not modify HTML code structure -->
2+
<h2>Change Log</h2>
3+
<div id="change-log">
4+
<h4>Added</h4>
5+
<ul id="added">
6+
<!-- <li>Feature making everything better</li> -->
7+
</ul>
8+
<h4>Fixed</h4>
9+
<ul id="fixed">
10+
<!-- <li>Behavior that was incorrect</li> -->
11+
</ul>
12+
<h4>Changed</h4>
13+
<ul id="changed">
14+
<!-- <li>Something into something new</li> -->
15+
</ul>
16+
<h4>Removed</h4>
17+
<ul id="removed">
18+
<!-- <li>Something</li> -->
19+
</ul>
20+
<h4>Deprecated</h4>
21+
<ul id="deprecated">
22+
<!-- <li>Something is from now deprecated</li> -->
23+
</ul>
24+
<h4>Security</h4>
25+
<ul id="security">
26+
<!-- <li>Something that was security issue, is not an issue anymore</li> -->
27+
</ul>
28+
</div>
29+
<hr/>
30+
31+
<h2>Description</h2>
32+
33+
<!-- Please provide a shore description of changes in this section, feel free to use markdown syntax -->

‎.github/dependabot.yml‎

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "composer"
4+
directory: "/"
5+
schedule:
6+
interval: "daily"
7+
8+
- package-ecosystem: "composer"
9+
directory: "/tools/cs-fixer"
10+
schedule:
11+
interval: "daily"
12+
13+
- package-ecosystem: "composer"
14+
directory: "/tools/infection"
15+
schedule:
16+
interval: "daily"
17+
18+
- package-ecosystem: "composer"
19+
directory: "/tools/monorepo"
20+
schedule:
21+
interval: "daily"
22+
23+
- package-ecosystem: "composer"
24+
directory: "/tools/phpstan"
25+
schedule:
26+
interval: "daily"
27+
28+
- package-ecosystem: "composer"
29+
directory: "/tools/phpunit"
30+
schedule:
31+
interval: "daily"
32+
33+
- package-ecosystem: "composer"
34+
directory: "/tools/psalm"
35+
schedule:
36+
interval: "daily"
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
name: Automation - Changelog Release
2+
3+
on:
4+
push:
5+
tags: [ '*' ]
6+
7+
jobs:
8+
automation:
9+
uses: aeon-php/actions/.github/workflows/automation-changelog-release.yml@main
10+
secrets:
11+
automation_github_token: "${{ secrets.GITHUB_TOKEN }}"
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
name: Automation - Changelog Update
2+
3+
on:
4+
push:
5+
branches: [ 1.x ]
6+
7+
jobs:
8+
automation:
9+
uses: aeon-php/actions/.github/workflows/automation-changelog-update.yml@main
10+
secrets:
11+
automation_github_token: "${{ secrets.GITHUB_TOKEN }}"
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
name: Automation - PR Description Validate
2+
3+
on:
4+
pull_request:
5+
types: [ opened, edited, reopened, ready_for_review ]
6+
7+
jobs:
8+
automation:
9+
uses: aeon-php/actions/.github/workflows/automation-pr-description-validate.yml@main
10+
secrets:
11+
automation_github_token: "${{ secrets.GITHUB_TOKEN }}"
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
name: Automation - Release Description Update
2+
3+
on:
4+
release:
5+
types: [ created ]
6+
7+
jobs:
8+
automation:
9+
uses: aeon-php/actions/.github/workflows/automation-release-description-update.yml@main
10+
secrets:
11+
automation_github_token: "${{ secrets.GITHUB_TOKEN }}"
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Dependabot - Auto Merge
2+
3+
on:
4+
workflow_run:
5+
types: [ completed ]
6+
workflows: [ "Test Suite" ]
7+
8+
jobs:
9+
merge-me:
10+
name: "Merge me!"
11+
runs-on: ubuntu-latest
12+
steps:
13+
- # It is often a desired behavior to merge only when a workflow execution
14+
# succeeds. This can be changed as needed.
15+
if: ${{ github.event.workflow_run.conclusion == 'success' }}
16+
name: Merge me!
17+
uses: ridedott/merge-me-action@v2
18+
with:
19+
# Depending on branch protection rules, a manually populated
20+
# `GITHUB_TOKEN_WORKAROUND` secret with permissions to push to
21+
# a protected branch must be used. This secret can have an arbitrary
22+
# name, as an example, this repository uses `DOTTBOTT_TOKEN`.
23+
#
24+
# When using a custom token, it is recommended to leave the following
25+
# comment for other developers to be aware of the reasoning behind it:
26+
#
27+
# This must be used as GitHub Actions token does not support pushing
28+
# to protected branches.
29+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Dependabot - Auto Merge
2+
3+
on:
4+
workflow_run:
5+
types: [ completed ]
6+
workflows: [ "Test Suite" ]
7+
8+
jobs:
9+
merge-me:
10+
name: "Merge me!"
11+
runs-on: ubuntu-latest
12+
steps:
13+
- # It is often a desired behavior to merge only when a workflow execution
14+
# succeeds. This can be changed as needed.
15+
if: ${{ github.event.workflow_run.conclusion == 'success' }}
16+
name: Merge me!
17+
uses: ridedott/merge-me-action@v2
18+
with:
19+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

‎.github/workflows/docs.yml‎

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Documentation Linter
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches:
7+
- "1.x"
8+
9+
jobs:
10+
documentation-linter:
11+
name: "Documentation Linter"
12+
13+
runs-on: "ubuntu-latest"
14+
15+
steps:
16+
- name: "Checkout"
17+
uses: "actions/checkout@v2"
18+
19+
- name: "MD Link Linter"
20+
uses: "docker://norberttech/md-link-linter:latest"
21+
with:
22+
entrypoint: "/composer/vendor/bin/mdlinklint"
23+
args: "--exclude=vendor --exclude=tests ."
Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
name: 'Packages Split'
2+
3+
on:
4+
push:
5+
branches:
6+
- 1.x
7+
tags:
8+
- '*'
9+
10+
env:
11+
GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }}
12+
13+
jobs:
14+
packages_split:
15+
runs-on: ubuntu-latest
16+
17+
strategy:
18+
fail-fast: false
19+
matrix:
20+
# define package to repository map
21+
package:
22+
- local_path: 'src/core/etl'
23+
split_repository: 'etl'
24+
25+
- local_path: 'src/lib/array-dot'
26+
split_repository: 'array-dot'
27+
- local_path: 'src/lib/doctrine-dbal-bulk'
28+
split_repository: 'doctrine-dbal-bulk'
29+
30+
- local_path: 'src/adapter/etl-adapter-amphp'
31+
split_repository: 'etl-adapter-amphp'
32+
- local_path: 'src/adapter/etl-adapter-avro'
33+
split_repository: 'etl-adapter-avro'
34+
- local_path: 'src/adapter/etl-adapter-csv'
35+
split_repository: 'etl-adapter-csv'
36+
- local_path: 'src/adapter/etl-adapter-doctrine'
37+
split_repository: 'etl-adapter-doctrine'
38+
- local_path: 'src/adapter/etl-adapter-elasticsearch'
39+
split_repository: 'etl-adapter-elasticsearch'
40+
- local_path: 'src/adapter/etl-adapter-http'
41+
split_repository: 'etl-adapter-http'
42+
- local_path: 'src/adapter/etl-adapter-json'
43+
split_repository: 'etl-adapter-json'
44+
- local_path: 'src/adapter/etl-adapter-logger'
45+
split_repository: 'etl-adapter-logger'
46+
- local_path: 'src/adapter/etl-adapter-parquet'
47+
split_repository: 'etl-adapter-parquet'
48+
- local_path: 'src/adapter/etl-adapter-reactphp'
49+
split_repository: 'etl-adapter-reactphp'
50+
- local_path: 'src/adapter/etl-adapter-text'
51+
split_repository: 'etl-adapter-text'
52+
- local_path: 'src/adapter/etl-adapter-xml'
53+
split_repository: 'etl-adapter-xml'
54+
55+
steps:
56+
- uses: actions/checkout@v2
57+
58+
# no tag
59+
-
60+
if: "!startsWith(github.ref, 'refs/tags/')"
61+
uses: "symplify/[email protected]"
62+
with:
63+
package_directory: 'packages/${{ matrix.package.local_path }}'
64+
65+
repository_organization: 'flow-php'
66+
repository_name: '${{ matrix.package.split_repository }}'
67+
68+
user_name: "norberttech"
69+
user_email: "[email protected]"
70+
71+
# with tag
72+
-
73+
if: "startsWith(github.ref, 'refs/tags/')"
74+
uses: "symplify/[email protected]"
75+
with:
76+
tag: ${GITHUB_REF#refs/tags/}
77+
78+
package_directory: 'packages/${{ matrix.package.local_path }}'
79+
80+
repository_organization: 'flow-php'
81+
repository_name: '${{ matrix.package.split_repository }}'
82+
83+
user_name: "norberttech"
84+
user_email: "[email protected]"

0 commit comments

Comments
 (0)