-
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.
* Added devcontainer * Reorganized composer dependencies * Update recipe * Update recipe * Update recipe * Update recipe * Update recipe * Update recipe * Update recipe * Update recipe * Update recipe * Update recipe * Update recipe * Update recipe * Update recipe * Update recipe * Remove recipt default style * Update symfony to 5.4 * Update recipe * Update recipe * Update recipe * Update recipe * Update recipe * Update recipe * Update recipe * Update recipe * Update recipe * Update recipe * Update recipe * Update recipe * Update recipe * Update recipe * Updated to symfony 5.4 and php7.4 * Update to php8 and symfony 6.4 * Update recipe * Update recipe * Update recipe * Update recipe * Update recipe * Update recipe * Update recipe * Renamed docker compose files * Added repository * Add cs fixer * Ran cs-fixer * Added phpstan * Added grumphp * Added rector * Configured logger * Ran rector * Ran cs fixer * Added short names * Ran rector * Fix stan and cs * Add simple smoketests * Updated README * Fix github build script * Added actuator bundle * Fix build file
- Loading branch information
kevin-studer
authored
Mar 25, 2024
1 parent
5f33df8
commit 5f0ce4d
Showing
107 changed files
with
13,293 additions
and
10,279 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,25 @@ | ||
{ | ||
"image": "mcr.microsoft.com/devcontainers/base:ubuntu", | ||
"features": { | ||
"ghcr.io/shyim/devcontainers-features/php:latest": { | ||
"version": "8.2", | ||
"extensionsExtra": "xdebug mbstring" | ||
}, | ||
"ghcr.io/devcontainers/features/node:1": {}, | ||
"ghcr.io/shyim/devcontainers-features/symfony-cli:0": {}, | ||
"ghcr.io/devcontainers/features/docker-in-docker:1": { | ||
"version": "latest", | ||
"moby": true | ||
} | ||
}, | ||
"customizations": { | ||
"vscode": { | ||
"settings": { | ||
"intelephense.files.maxSize": 100000000 | ||
}, | ||
"extensions": [ | ||
"DEVSENSE.phptools-vscode" | ||
] | ||
} | ||
} | ||
} |
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
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 |
---|---|---|
@@ -1,4 +1,6 @@ | ||
# define your env variables for the test env here | ||
KERNEL_CLASS='App\Kernel' | ||
APP_SECRET='s$cretf0rt3st' | ||
APP_SECRET='$ecretf0rt3st' | ||
SYMFONY_DEPRECATIONS_HELPER=999999 | ||
PANTHER_APP_ENV=panther | ||
PANTHER_ERROR_SCREENSHOT_DIR=./var/error-screenshots |
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,134 @@ | ||
name: "Build" | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
- main | ||
pull_request: | ||
branches: | ||
- master | ||
- main | ||
|
||
|
||
jobs: | ||
phpstan: | ||
name: "pstan" | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: "Checkout" | ||
uses: "actions/checkout@v4" | ||
|
||
- name: "Install PHP" | ||
uses: "shivammathur/setup-php@v2" | ||
with: | ||
coverage: "none" | ||
php-version: "8.2" | ||
extensions: "intl, json, zip" | ||
|
||
- name: Get composer cache directory | ||
id: composerCache | ||
run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT | ||
|
||
- name: Cache dependencies | ||
uses: actions/cache@v3 | ||
with: | ||
path: ${{ steps.composerCache.outputs.dir }} | ||
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }} | ||
restore-keys: ${{ runner.os }}-composer- | ||
|
||
- name: "Install latest dependencies" | ||
run: composer install --ansi --no-interaction --no-progress --prefer-dist | ||
|
||
- name: "Run phpstan" | ||
run: php vendor/bin/phpstan analyse --error-format=github | ||
|
||
|
||
php-cs-fixer: | ||
name: "php-cs-fixer" | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: "Checkout" | ||
uses: "actions/checkout@v4" | ||
|
||
- name: "Install PHP" | ||
uses: "shivammathur/setup-php@v2" | ||
with: | ||
coverage: "none" | ||
php-version: "8.2" | ||
extensions: "intl, json, zip" | ||
|
||
- name: Get composer cache directory | ||
id: composerCache | ||
run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT | ||
|
||
- name: Cache dependencies | ||
uses: actions/cache@v3 | ||
with: | ||
path: ${{ steps.composerCache.outputs.dir }} | ||
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }} | ||
restore-keys: ${{ runner.os }}-composer- | ||
|
||
- name: "Install latest dependencies" | ||
run: composer install --ansi --no-interaction --no-progress --prefer-dist | ||
|
||
- name: "Run php-cs-fixer" | ||
run: php vendor/bin/php-cs-fixer fix -v --dry-run --using-cache=no | ||
|
||
phpunit: | ||
needs: [ "phpstan", "php-cs-fixer" ] | ||
|
||
name: "phpunit" | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: "Checkout" | ||
uses: "actions/checkout@v4" | ||
|
||
- name: "Install PHP" | ||
uses: "shivammathur/setup-php@verbose" | ||
with: | ||
coverage: "pcov" | ||
php-version: "8.2" | ||
extensions: "intl, json, zip" | ||
|
||
- name: "Install symfony-cli" | ||
run: | | ||
curl -sS https://get.symfony.com/cli/installer | bash | ||
mv $HOME/.symfony5/bin/symfony /usr/local/bin/symfony | ||
- name: Get composer cache directory | ||
id: composerCache | ||
run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT | ||
|
||
- name: Cache dependencies | ||
uses: actions/cache@v3 | ||
with: | ||
path: ${{ steps.composerCache.outputs.dir }} | ||
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }} | ||
restore-keys: ${{ runner.os }}-composer- | ||
|
||
- name: "Install Node" | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: '18.16' | ||
|
||
- name: "Install latest dependencies" | ||
run: | | ||
composer install --ansi --no-interaction --no-progress --prefer-dist | ||
yarn | ||
- name: "Build assets" | ||
run: yarn encore production --color | ||
|
||
- name: "Start services" | ||
run: docker compose up -d --wait | ||
|
||
- name: "Run PHPUnit" | ||
run: symfony php vendor/bin/phpunit | ||
|
||
- name: "Cleanup" | ||
if: ${{ always() }} | ||
run: docker-compose down |
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
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,19 @@ | ||
<?php | ||
|
||
$finder = (new PhpCsFixer\Finder()) | ||
->in(__DIR__) | ||
->exclude('var') | ||
->exclude('node_modules') | ||
->exclude('vendor') | ||
; | ||
|
||
return (new PhpCsFixer\Config()) | ||
->setRules([ | ||
'@PhpCsFixer' => true, | ||
'@Symfony' => true, | ||
'@Symfony:risky' => true, | ||
'php_unit_test_class_requires_covers' => false, | ||
]) | ||
->setRiskyAllowed(true) | ||
->setFinder($finder) | ||
; |
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
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,12 @@ | ||
/* | ||
* Welcome to your app's main JavaScript file! | ||
* | ||
* We recommend including the built version of this JavaScript file | ||
* (and its CSS file) in your base layout (base.html.twig). | ||
*/ | ||
|
||
// any CSS you import will output into a single css file (app.css in this case) | ||
import './styles/app.css'; | ||
|
||
// start the Stimulus application | ||
import './bootstrap'; |
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 @@ | ||
import { startStimulusApp } from '@symfony/stimulus-bridge'; | ||
|
||
// Registers Stimulus controllers from controllers.json and in the controllers/ directory | ||
export const app = startStimulusApp(require.context( | ||
'@symfony/stimulus-bridge/lazy-controller-loader!./controllers', | ||
true, | ||
/\.[jt]sx?$/ | ||
)); | ||
|
||
// register any custom, 3rd party controllers here | ||
// app.register('some_controller_name', SomeImportedController); |
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,4 @@ | ||
{ | ||
"controllers": [], | ||
"entrypoints": [] | ||
} |
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,16 @@ | ||
import { Controller } from '@hotwired/stimulus'; | ||
|
||
/* | ||
* This is an example Stimulus controller! | ||
* | ||
* Any element with a data-controller="hello" attribute will cause | ||
* this controller to be executed. The name "hello" comes from the filename: | ||
* hello_controller.js -> "hello" | ||
* | ||
* Delete this file or adapt it for your use! | ||
*/ | ||
export default class extends Controller { | ||
connect() { | ||
this.element.textContent = 'Hello Stimulus! Edit me in assets/controllers/hello_controller.js'; | ||
} | ||
} |
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
File renamed without changes.
Oops, something went wrong.