From 6e2571296fdee3cd70d4113e60136ed8c1be160e Mon Sep 17 00:00:00 2001 From: Al Ganiev Date: Mon, 25 Aug 2025 12:42:59 +1000 Subject: [PATCH 1/5] 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/5] =?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) From d2b682b9a30e558e13f877d49940e6e08cb6f25d Mon Sep 17 00:00:00 2001 From: Al Ganiev Date: Mon, 25 Aug 2025 19:58:07 +1000 Subject: [PATCH 3/5] Fixed coverage --- .github/workflows/test.yaml | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 742d847..9d68d8a 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -39,9 +39,12 @@ jobs: 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 + + - name: Run codacy-coverage-reporter + uses: codacy/codacy-coverage-reporter-action@v1.3.0 with: - token: ${{ secrets.CODECOV_TOKEN }} - files: ./coverage.xml - verbose: true # optional (default = false) \ No newline at end of file + project-token: ${{ secrets.CODACY_PROJECT_TOKEN }} + # or + # api-token: ${{ secrets.CODACY_API_TOKEN }} + coverage-reports: + # coverage-reports: , \ No newline at end of file From cea7237af39a49eb6a4c9bf8b97367a8e3fc5814 Mon Sep 17 00:00:00 2001 From: Al Ganiev Date: Tue, 26 Aug 2025 11:47:19 +1000 Subject: [PATCH 4/5] Updated badges --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 84cfeeb..9c00faf 100644 --- a/README.md +++ b/README.md @@ -5,8 +5,9 @@ [![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) - +[![Codacy Badge](https://app.codacy.com/project/badge/Coverage/7e69b3d893b94af78df72631ee4f5496)](https://app.codacy.com/gh/helios-ag/FMSummernoteBundle/dashboard?utm_source=gh&utm_medium=referral&utm_content=&utm_campaign=Badge_coverage) FMSummernoteBundle integrates the [Summernote WYSIWYG editor](https://summernote.org/) with Symfony applications. +[![Codacy Badge](https://app.codacy.com/project/badge/Grade/7e69b3d893b94af78df72631ee4f5496)](https://app.codacy.com/gh/helios-ag/FMSummernoteBundle/dashboard?utm_source=gh&utm_medium=referral&utm_content=&utm_campaign=Badge_grade) ## Requirements From 9fbb9fe8a054b6becab76a5757776c8cd88c9868 Mon Sep 17 00:00:00 2001 From: Al Ganiev Date: Tue, 26 Aug 2025 12:10:01 +1000 Subject: [PATCH 5/5] Tweaking workflow file --- .github/workflows/test.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 27b0d6b..c986cd1 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -41,7 +41,7 @@ jobs: run: XDEBUG_MODE=coverage vendor/bin/phpunit --coverage-clover ./coverage.xml - name: Run codacy-coverage-reporter - uses: codacy/codacy-coverage-reporter-action@v1.3.0 + uses: codacy/codacy-coverage-reporter-action@v1 with: project-token: ${{ secrets.CODACY_PROJECT_TOKEN }} coverage-reports: ./coverage.xml \ No newline at end of file