feat: add ConnectionTypeEnum and ConnectionConfigDTO to support DSN-b… #31
This file contains hidden or 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
| name: 🧠 Maatify Common – CI (PHP 8.4) | |
| on: | |
| push: | |
| branches: [ main, dev, feature/** ] | |
| pull_request: | |
| branches: [ main, dev ] | |
| permissions: | |
| contents: read | |
| jobs: | |
| build: | |
| name: 🔧 Build & Test (PHP 8.4) | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| php: [ '8.4' ] | |
| steps: | |
| - name: 📥 Checkout Code | |
| uses: actions/checkout@v4 | |
| - name: ⚙️ Setup PHP ${{ matrix.php }} | |
| uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: ${{ matrix.php }} | |
| extensions: mbstring, intl, json, redis | |
| coverage: xdebug | |
| tools: composer:v2 | |
| ini-values: | | |
| display_errors=On | |
| error_reporting=E_ALL | |
| - name: 🧩 Validate Composer | |
| run: composer validate --strict | |
| - name: 📦 Install Dependencies | |
| run: composer install --prefer-dist --no-interaction --no-progress --no-suggest | |
| - name: 🧹 Code Style (PHP-CS-Fixer) | |
| run: | | |
| if [ -f vendor/bin/php-cs-fixer ]; then | |
| vendor/bin/php-cs-fixer fix --dry-run --diff || true | |
| else | |
| echo "⚠️ php-cs-fixer not installed – skipping" | |
| fi | |
| - name: 🔍 Static Analysis (PHPStan) | |
| run: | | |
| if [ -f vendor/bin/phpstan ]; then | |
| vendor/bin/phpstan analyse src --level=max || true | |
| else | |
| echo "⚠️ PHPStan not installed – skipping" | |
| fi | |
| - name: 🧪 Run PHPUnit Tests | |
| run: | | |
| if [ -f vendor/bin/phpunit ]; then | |
| vendor/bin/phpunit --configuration phpunit.xml --colors=always --testdox | |
| else | |
| echo "⚠️ PHPUnit not installed – skipping" | |
| fi | |
| - name: 📤 Upload Coverage to Artifacts | |
| if: success() || failure() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: phpunit-coverage-report | |
| path: .phpunit.cache/ | |
| - name: 📊 Summary | |
| if: always() | |
| run: | | |
| echo "✅ PHP Version : ${{ matrix.php }}" >> $GITHUB_STEP_SUMMARY | |
| echo "📦 Composer dependencies installed" >> $GITHUB_STEP_SUMMARY | |
| echo "🧠 Static analysis + tests completed" >> $GITHUB_STEP_SUMMARY |