fix: decoding issue #191
This file contains 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: Tests | |
on: | |
push: | |
branches: [master] | |
pull_request: | |
branches: [master] | |
jobs: | |
php-tests: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
php: ['8.0', '8.1'] | |
laravel: [8.*, 9.*] | |
name: PHP ${{ matrix.php }} - Laravel ${{ matrix.laravel }} | |
steps: | |
- name: Checkout code | |
uses: actions/[email protected] | |
- name: Setup PHP | |
uses: shivammathur/[email protected] | |
with: | |
php-version: ${{ matrix.php }} | |
- name: Cache dependencies | |
uses: actions/[email protected] | |
with: | |
path: ~/.composer/cache/files | |
key: dependencies-laravel-${{ matrix.laravel }}-php-${{ matrix.php }}-composer-${{ hashFiles('composer.json') }} | |
- name: Install dependencies | |
run: | | |
composer require "laravel/framework:${{ matrix.laravel }}" -n --no-update | |
composer update --prefer-stable --prefer-dist -n --no-suggest | |
- name: Execute tests (Unit and Feature tests) via PHPUnit | |
run: composer test | |
- name: Code Test and Coverage | |
uses: paambaati/[email protected] | |
env: | |
CC_TEST_REPORTER_ID: "${{secrets.CC_TEST_REPORTER_ID}}" | |
with: | |
coverageCommand: composer test-cover | |
coverageLocations: "${{github.workspace}}/coverage.xml:clover" |