-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
25 changed files
with
707 additions
and
303 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 |
---|---|---|
@@ -1,26 +1,56 @@ | ||
name: tableBundle | ||
name: PHP Symfony CI | ||
|
||
on: | ||
push: | ||
branches: [ main ] | ||
pull_request: | ||
branches: [ main, develop ] | ||
|
||
env: | ||
DATABASE_URL: mysql://root:[email protected]:3306/table_bundle | ||
DATABASE_DRIVER: pdo_mysql | ||
|
||
jobs: | ||
phpunit: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
matrix: | ||
php: [8.1, 8.2, 8.3] | ||
symfony: [6.4.*, 7.0.*, 7.1.*] | ||
exclude: | ||
- php: 8.1 | ||
symfony: 7.1.* | ||
- php: 8.1 | ||
symfony: 7.0.* | ||
|
||
services: | ||
mysql: | ||
image: mysql:latest | ||
env: | ||
MYSQL_ROOT_PASSWORD: root | ||
ports: | ||
- 3306:3306 | ||
options: >- | ||
--health-cmd "mysqladmin ping --silent" | ||
--health-interval 10s | ||
--health-timeout 5s | ||
--health-retries 3 | ||
steps: | ||
- uses: shivammathur/setup-php@2cb9b829437ee246e9b3cac53555a39208ca6d28 | ||
- uses: actions/checkout@v4 | ||
- name: Setup PHP ${{ matrix.php }} | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: '8.1' | ||
- uses: actions/checkout@v2 | ||
- name: Install Dependencies | ||
run: composer install -q --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist | ||
- name: Execute tests (Unit and Feature tests) via PHPUnit | ||
php-version: ${{ matrix.php }} | ||
tools: flex | ||
- name: Download dependencies | ||
env: | ||
DATABASE_URL: sqlite:///%kernel.project_dir%/var/app.db | ||
SYMFONY_REQUIRE: ${{ matrix.symfony }} | ||
uses: ramsey/composer-install@v2 | ||
- name: Run test suite on PHP ${{ matrix.php }} and Symfony ${{ matrix.symfony }} | ||
run: vendor/bin/simple-phpunit | ||
- name: Check Code Styles | ||
- name: Run ECS | ||
run: vendor/bin/ecs | ||
- name: Check PHP Stan | ||
- name: Run PHPStan | ||
run: vendor/bin/phpstan analyse src tests |
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
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 |
---|---|---|
|
@@ -79,7 +79,19 @@ | |
<!-- Source: https://github.com/Leward/mermaid-docsify --> | ||
<script type="module"> | ||
import mermaid from "https://cdn.jsdelivr.net/npm/mermaid@10/dist/mermaid.esm.min.mjs"; | ||
mermaid.initialize({ startOnLoad: true }); | ||
mermaid.initialize({ | ||
startOnLoad: true, | ||
theme: 'base', | ||
themeVariables: { | ||
darkMode: true, | ||
primaryColor: '#5b47d1', | ||
primaryTextColor: '#ffffff', | ||
primaryBorderColor: '#1b1447', | ||
lineColor: '#fc00ff', | ||
secondaryColor: '#fc00ff', | ||
tertiaryColor: '#fc00ff', | ||
}, | ||
}); | ||
window.mermaid = mermaid; | ||
</script> | ||
<script src="https://unpkg.com/[email protected]/dist/docsify-mermaid.js"></script> | ||
|
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 |
---|---|---|
|
@@ -11,6 +11,7 @@ | |
<server name="SHELL_VERBOSITY" value="-1"/> | ||
<server name="SYMFONY_DEPRECATIONS_HELPER" value="max[self]=0&max[direct]=0"/> | ||
<env name="DATABASE_URL" value="mysql://root:[email protected]:3306/table_bundle" /> | ||
<env name="DATABASE_DRIVER" value="pdo_mysql" /> | ||
|
||
</php> | ||
<testsuites> | ||
|
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
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
Oops, something went wrong.