diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7403481..2958dfa 100755 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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: 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`.