From 60875b85967589f00bbafc8d47e7f4a5d7e7912f Mon Sep 17 00:00:00 2001 From: Josantonius Date: Sat, 11 Jun 2022 23:27:56 +0200 Subject: [PATCH 1/3] fix: code coverage report submission Fix code coverage report submission to Codecov.io. --- .github/workflows/ci.yml | 58 +++++++++++++++++++++++++--------------- 1 file changed, 36 insertions(+), 22 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7403481..68f8cb3 100755 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,4 +1,4 @@ -name: CI +name: PHPUnit Tests on: push: @@ -11,7 +11,7 @@ permissions: jobs: - cs: + code-style: runs-on: 'ubuntu-latest' name: 'Coding style' steps: @@ -39,9 +39,7 @@ jobs: if: 'always()' phpunit: - runs-on: ${{ matrix.system }} - name: 'PHPUnit (PHP ${{ matrix.php }} - ${{ matrix.system }})' strategy: matrix: @@ -53,30 +51,46 @@ jobs: - '7.2' - '7.3' - '7.4' - steps: - - name: Checkout Code - uses: actions/checkout@v2 - - - name: 'Setup PHP' - uses: 'shivammathur/setup-php@v2' - with: - php-version: '${{ matrix.php }}' - coverage: 'none' - tools: 'composer:v2' + - name: Checkout Code + uses: actions/checkout@v2 - - name: 'Install dependencies' - run: | - composer install --no-interaction --no-progress --ansi - - - name: 'Run unit tests' - run: | - composer phpunit + - name: 'Setup PHP' + uses: 'shivammathur/setup-php@v2' + with: + php-version: '${{ matrix.php }}' + coverage: 'none' + tools: 'composer:v2' - coverage: + - name: 'Install dependencies' + run: | + composer install --no-interaction --no-progress --ansi + + - name: 'Run unit tests' + run: | + composer phpunit + + code-coverage: runs-on: 'ubuntu-latest' name: 'Code Coverage' steps: + - name: 'Checkout' + uses: 'actions/checkout@v2' + + - name: 'Setup PHP' + uses: 'shivammathur/setup-php@v2' + with: + php-version: '7.4' + tools: 'composer:v2' + + - name: 'Install dependencies' + run: | + composer install --no-interaction --no-progress --ansi + + - name: 'Run code coverage' + run: | + composer coverage + - name: Send code coverage report to Codecov.io uses: codecov/codecov-action@v2 with: From c1961be011f7af1aa7f84c77888a8474b9756b6d Mon Sep 17 00:00:00 2001 From: Josantonius Date: Sat, 11 Jun 2022 23:43:35 +0200 Subject: [PATCH 2/3] fix: send code coverage report Fix sending code coverage report to Codecov.io. --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 68f8cb3..2958dfa 100755 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,4 +1,4 @@ -name: PHPUnit Tests +name: CI on: push: From e18e7a584890b9bf015c38fa31e2f6245a005919 Mon Sep 17 00:00:00 2001 From: Josantonius Date: Sat, 11 Jun 2022 23:44:07 +0200 Subject: [PATCH 3/3] docs: release notes for the 1.1.9 release Add new release. --- CHANGELOG.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index f4ea11d..4ea29c9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # CHANGELOG +## [1.1.9](https://github.com/josantonius/php-json/releases/tag/1.1.9) (2022-06-11) + +* Fix sending code coverage report to Codecov.io. + ## [1.1.8](https://github.com/josantonius/php-json/releases/tag/1.1.8) (2022-06-11) * Added support for `PHP 7.3` and `7.4`.