Skip to content

fix: decoding issue #191

fix: decoding issue

fix: decoding issue #191

Workflow file for this run

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"