From 6e2571296fdee3cd70d4113e60136ed8c1be160e Mon Sep 17 00:00:00 2001 From: Al Ganiev Date: Mon, 25 Aug 2025 12:42:59 +1000 Subject: [PATCH 1/2] Updated workflow --- .github/workflows/test.yaml | 49 ++++++++++++------------------------- 1 file changed, 16 insertions(+), 33 deletions(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 43f7bd3..742d847 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -6,8 +6,6 @@ on: push: branches: - 'main' - tags: - - '*' env: fail-fast: true @@ -19,10 +17,10 @@ jobs: continue-on-error: false strategy: matrix: - php-version: ['8.1', '8.2', '8.3'] + php-version: ['8.1', '8.2', '8.3', '8.4'] steps: - name: 'Checkout code' - uses: actions/checkout@v4 + uses: actions/checkout@v5 - name: 'Install PHP with extensions' uses: shivammathur/setup-php@v2 @@ -30,35 +28,20 @@ jobs: coverage: xdebug php-version: ${{ matrix.php-version }} tools: composer:v2 - extensions: mbstring, intl, pdo, pdo_sqlite, sqlite3 + extensions: mbstring, intl ini-values: date.timezone=UTC - - name: 'Cache Composer packages' - id: composer-cache - uses: actions/cache@v4 - with: - path: vendor - key: php-${{ matrix.php-version }}-composer-${{ hashFiles('**/composer.lock') }} - restore-keys: | - php-${{ matrix.php-version }}-composer- - - - name: 'Install Composer dependencies' - run: | - composer validate --strict - composer install --prefer-dist --no-progress --no-suggest --optimize-autoloader --no-interaction - - - name: 'Run PHPUnit' - env: - SYMFONY_DEPRECATIONS_HELPER: max[total]=0 - run: php -d memory_limit=-1 ./vendor/bin/phpunit --coverage-clover=coverage.xml - - - name: 'Upload code coverage (if token available)' - if: success() && github.event_name == 'push' && github.ref == 'refs/heads/master' - env: - CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} + - name: 'Install project dependencies' run: | - if [ -n "$CODECOV_TOKEN" ]; then - curl -s https://codecov.io/bash | bash -s -- -t $CODECOV_TOKEN -f coverage.xml || echo "Codecov upload failed" - else - echo "Skipping code coverage upload - no token available" - fi + composer global config --no-plugins allow-plugins.symfony/flex true + composer global require --no-progress --no-scripts --no-plugins symfony/flex + composer update --no-interaction --prefer-dist --optimize-autoloader --prefer-stable + vendor/bin/simple-phpunit install + - name: 'Run tests' + run: XDEBUG_MODE=coverage vendor/bin/phpunit --coverage-clover ./coverage.xml + - name: codecov + uses: codecov/codecov-action@v5 + with: + token: ${{ secrets.CODECOV_TOKEN }} + files: ./coverage.xml + verbose: true # optional (default = false) \ No newline at end of file From 109e4547a4d6f1d541cf4a5f147b11a6dcd04d7b Mon Sep 17 00:00:00 2001 From: Al Ganiev Date: Mon, 25 Aug 2025 12:57:51 +1000 Subject: [PATCH 2/2] =?UTF-8?q?=D0=9A=D1=83=D1=8C=D1=89=D0=BC=D1=83=D0=B2?= =?UTF-8?q?=20=D0=B8=D1=84=D0=B2=D0=BF=D1=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 7819718..84cfeeb 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # FMSummernoteBundle [![Tests](https://github.com/helios-ag/FMSummernoteBundle/actions/workflows/test.yaml/badge.svg)](https://github.com/helios-ag/FMSummernoteBundle/actions/workflows/test.yaml) -[![StyleCI](https://github.styleci.io/repos/43000455/shield?branch=master)](https://github.styleci.io/repos/43000455) + [![Total Downloads](https://poser.pugx.org/helios-ag/fm-summernote-bundle/downloads)](https://packagist.org/packages/helios-ag/fm-summernote-bundle) [![Latest Stable Version](https://poser.pugx.org/helios-ag/fm-summernote-bundle/v/stable)](https://packagist.org/packages/helios-ag/fm-summernote-bundle) [![License](https://poser.pugx.org/helios-ag/fm-summernote-bundle/license)](https://packagist.org/packages/helios-ag/fm-summernote-bundle)