Skip to content

Commit e8b0270

Browse files
Merge pull request #2 from move-elevator/chore/project-infrastructure
chore: project infrastructure, code quality and CI/CD
2 parents 6973fb2 + b24a887 commit e8b0270

45 files changed

Lines changed: 10913 additions & 472 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.ddev/.setup/templates/index.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
$supportedVersions = explode(' ', getenv('TYPO3_VERSIONS'));
66

77
// Check if composer.json exists
8-
$composerJsonPath = __DIR__ . '/../composer.json';
8+
$composerJsonPath = __DIR__.'/../composer.json';
99
if (file_exists($composerJsonPath)) {
1010
$composerJsonContent = file_get_contents($composerJsonPath);
1111
$composerData = json_decode($composerJsonContent, true);
@@ -42,7 +42,7 @@
4242
<p>Run <code>ddev install all</code> to install all TYPO3 instances below:</p>
4343
<?php
4444
foreach ($supportedVersions as $version) {
45-
$directoryPath = '/var/www/html/.Build/' . $version;
45+
$directoryPath = '/var/www/html/.Build/'.$version;
4646
if (is_dir($directoryPath)) {
4747
echo "<article class='flex'><kbd>{$version}</kbd><div><strong>Frontend</strong><br/><strong>Backend</strong></div><div><a target='_blank' href='https://{$version}.{$extensionKey}.ddev.site'>https://{$version}.{$extensionKey}.ddev.site</a><br/><a target='_blank' href='https://{$version}.{$extensionKey}.ddev.site/typo3/?u={$typo3AdminUser}&p={$typo3AdminPassword}'>https://{$version}.{$extensionKey}.ddev.site/typo3</a></div></article>";
4848
} else {
@@ -64,7 +64,7 @@
6464
$filePath = $fileInfo->getPathname();
6565
$fileName = $fileInfo->getFilename();
6666

67-
if ($fileName[0] === '.' || $fileInfo->isDir()) {
67+
if ('.' === $fileName[0] || $fileInfo->isDir()) {
6868
continue;
6969
}
7070

.ddev/commands/web/cgl

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/usr/bin/env bash
2+
set -e
3+
4+
## Description: Run CGL script for the package files
5+
## Usage: cgl [command] [options]
6+
## Example: ddev cgl lint\nddev cgl fix\nddev cgl migration\nddev cgl sca\nddev cgl lint:composer\nddev cgl fix:composer
7+
8+
composer -d /var/www/html/Tests/CGL "$@"

.editorconfig

Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
# top-most EditorConfig file
2+
root = true
3+
4+
# Unix-style newlines with a newline ending every file
5+
[*]
6+
charset = utf-8
7+
end_of_line = lf
8+
indent_style = space
9+
indent_size = 4
10+
insert_final_newline = true
11+
trim_trailing_whitespace = true
12+
13+
# JS files
14+
[*.js]
15+
indent_size = 2
16+
17+
# JSON files
18+
[*.json]
19+
indent_style = tab
20+
21+
# package.json
22+
[package.json]
23+
indent_size = 2
24+
25+
# ReST files
26+
[{*.rst,*.rst.txt}]
27+
indent_size = 4
28+
max_line_length = 80
29+
30+
# SQL files
31+
[*.sql]
32+
indent_style = tab
33+
indent_size = 2
34+
35+
# TypoScript files
36+
[*.{typoscript,tsconfig}]
37+
indent_size = 2
38+
39+
# YAML files
40+
[{*.yml,*.yaml}]
41+
indent_size = 2
42+
43+
# XLF files
44+
[*.xlf]
45+
indent_style = tab
46+
47+
# .htaccess
48+
[.htaccess]
49+
indent_style = tab
50+
51+
# Markdown files
52+
[*.md]
53+
indent_style = unset
54+
indent_size = unset
55+
trim_trailing_whitespace = unset
56+
insert_final_newline = unset
57+
58+
# phpstan.neon
59+
[*.neon]
60+
indent_style = tab
61+
62+
# Ignore paths
63+
[/.ddev/**]
64+
charset = unset
65+
end_of_line = unset
66+
insert_final_newline = unset
67+
trim_trailing_whitespace = unset
68+
indent_style = unset
69+
indent_size = unset
70+
71+
[/Documentation/**]
72+
charset = unset
73+
end_of_line = unset
74+
insert_final_newline = unset
75+
trim_trailing_whitespace = unset
76+
indent_style = unset
77+
indent_size = unset

.gitattributes

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,18 @@
1-
* text=auto
2-
/.gitattributes export-ignore
3-
/.gitignore export-ignore
1+
* text=auto
2+
/.ddev export-ignore
3+
/.github export-ignore
4+
/Tests export-ignore
5+
/Documentation export-ignore
6+
/docs export-ignore
7+
/.editorconfig export-ignore
8+
/.gitattributes export-ignore
9+
/.gitignore export-ignore
10+
/CODEOWNERS export-ignore
11+
/CODE_OF_CONDUCT.md export-ignore
12+
/CONTRIBUTING.md export-ignore
13+
/SECURITY.md export-ignore
14+
/composer.lock export-ignore
15+
/packaging_exclude.php export-ignore
16+
/phpunit.xml export-ignore
17+
/renovate.json export-ignore
18+
/version-bumper.yaml export-ignore

.github/workflows/cgl.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
name: CGL
2+
on:
3+
push:
4+
branches:
5+
- '**'
6+
7+
jobs:
8+
cgl:
9+
uses: konradmichalik/reusable-github-actions/.github/workflows/cgl-test.yml@main

.github/workflows/release.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
name: Release
2+
on:
3+
push:
4+
tags:
5+
- '*'
6+
7+
jobs:
8+
ter-publish:
9+
uses: konradmichalik/reusable-github-actions/.github/workflows/release-typo3.yml@main
10+
secrets:
11+
typo3-api-token: ${{ secrets.TYPO3_API_TOKEN }}
12+
with:
13+
typo3-extension-key: 'repeatable_form_elements'

.github/workflows/tests.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
name: Tests
2+
on:
3+
push:
4+
branches:
5+
- '**'
6+
7+
jobs:
8+
tests:
9+
uses: konradmichalik/reusable-github-actions/.github/workflows/tests-typo3.yml@main
10+
with:
11+
php-versions: '["8.2", "8.3", "8.4", "8.5"]'
12+
typo3-versions: '["13.4", "14.2"]'
13+
dependencies: '["highest", "lowest"]'

.gitignore

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
1+
.Build/
2+
.claude
3+
.idea
14
/public
5+
!Resources/Public
26
/vendor
3-
/composer.lock
4-
.Build/
7+
/var
8+
/Tests/CGL/vendor
9+
.phpunit.result.cache
10+
Tests/CGL/.php-cs-fixer.cache

CODEOWNERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* km@move-elevator.de

CODE_OF_CONDUCT.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Code of Conduct
2+
3+
This project uses the
4+
[TYPO3 Code of Conduct](https://typo3.org/community/values/code-of-conduct).
5+
6+
When you contribute to this project or interact with community members,
7+
you agree to adhere to this code of conduct.

0 commit comments

Comments
 (0)