mirror of
https://github.com/symfony/ux.symfony.com.git
synced 2026-03-24 00:02:09 +01:00
Copy (and adapt) .github folder
This commit is contained in:
19
.github/PULL_REQUEST_TEMPLATE.md
vendored
Normal file
19
.github/PULL_REQUEST_TEMPLATE.md
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
| Q | A
|
||||
| -------------- | ---
|
||||
| Bug fix? | yes/no
|
||||
| New feature? | yes/no
|
||||
| Issues | Fix #... <!-- prefix each issue number with "Fix #", no need to create an issue if none exist, explain below instead -->
|
||||
| License | MIT
|
||||
|
||||
<!--
|
||||
Replace this notice by a description of your feature/bugfix.
|
||||
This will help reviewers and should be a good start for the documentation.
|
||||
|
||||
Additionally (see https://symfony.com/releases):
|
||||
- Always add tests and ensure they pass.
|
||||
- For new features, provide some code snippets to help understand usage.
|
||||
- Features and deprecations must be submitted against branch main.
|
||||
- Update/add documentation as required (we can help!)
|
||||
- Changelog entry should follow https://symfony.com/doc/current/contributing/code/conventions.html#writing-a-changelog-entry
|
||||
- Never break backward compatibility (see https://symfony.com/bc).
|
||||
-->
|
||||
15
.github/workflows/fabbot.yaml
vendored
Normal file
15
.github/workflows/fabbot.yaml
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
name: Fabbot
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
call-fabbot:
|
||||
name: Fabbot
|
||||
uses: symfony-tools/fabbot/.github/workflows/fabbot.yml@main
|
||||
with:
|
||||
package: Symfony UX
|
||||
check_license: true
|
||||
34
.github/workflows/tests.yaml
vendored
Normal file
34
.github/workflows/tests.yaml
vendored
Normal file
@@ -0,0 +1,34 @@
|
||||
name: Tests
|
||||
|
||||
jobs:
|
||||
tests:
|
||||
runs-on: ubuntu-latest
|
||||
defaults:
|
||||
run:
|
||||
shell: bash
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- uses: shivammathur/setup-php@v2
|
||||
with:
|
||||
php-version: '8.5'
|
||||
|
||||
- name: Install root dependencies
|
||||
uses: ramsey/composer-install@v3
|
||||
with:
|
||||
working-directory: ${{ github.workspace }}
|
||||
|
||||
- name: Install dependencies
|
||||
uses: ramsey/composer-install@v3
|
||||
with:
|
||||
working-directory: ux.symfony.com
|
||||
dependency-versions: 'highest'
|
||||
|
||||
- name: Importmap dependencies
|
||||
run: php bin/console importmap:install
|
||||
|
||||
- name: Build Sass assets
|
||||
run: php bin/console sass:build
|
||||
|
||||
- name: Tests
|
||||
run: vendor/bin/phpunit
|
||||
54
.php-cs-fixer.dist.php
Normal file
54
.php-cs-fixer.dist.php
Normal file
@@ -0,0 +1,54 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
* This file is part of the Symfony package.
|
||||
*
|
||||
* (c) Fabien Potencier <fabien@symfony.com>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
$fileHeaderParts = [
|
||||
<<<'EOF'
|
||||
This file is part of the Symfony package.
|
||||
|
||||
(c) Fabien Potencier <fabien@symfony.com>
|
||||
|
||||
EOF,
|
||||
<<<'EOF'
|
||||
|
||||
For the full copyright and license information, please view the LICENSE
|
||||
file that was distributed with this source code.
|
||||
EOF,
|
||||
];
|
||||
|
||||
return (new PhpCsFixer\Config())
|
||||
->setParallelConfig(PhpCsFixer\Runner\Parallel\ParallelConfigFactory::detect())
|
||||
->setRules([
|
||||
'@PHP8x1Migration' => true, // take lowest version from `git grep -h '"php"' **/composer.json | uniq | sort`
|
||||
'@PHPUnit9x1Migration:risky' => true,
|
||||
'@Symfony' => true,
|
||||
'@Symfony:risky' => true,
|
||||
'header_comment' => [
|
||||
'header' => implode('', $fileHeaderParts),
|
||||
'validator' => implode('', [
|
||||
'/',
|
||||
preg_quote($fileHeaderParts[0], '/'),
|
||||
'(?P<EXTRA>.*)??',
|
||||
preg_quote($fileHeaderParts[1], '/'),
|
||||
'/s',
|
||||
]),
|
||||
],
|
||||
])
|
||||
->setRiskyAllowed(true)
|
||||
->setFinder((new PhpCsFixer\Finder())
|
||||
->in(__DIR__)
|
||||
->append([__FILE__])
|
||||
->notPath('#/Fixtures/#')
|
||||
->notPath('#/assets/#')
|
||||
->notPath('#/var/#')
|
||||
// apps/
|
||||
->notPath(['#config/#', '#public/#', 'importmap.php'])
|
||||
)
|
||||
;
|
||||
Reference in New Issue
Block a user