Skip to content

Add tests, updated dependencies and format code #91

Add tests, updated dependencies and format code

Add tests, updated dependencies and format code #91

Workflow file for this run

name: tests
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
php: [7.4, '8.0', 8.1, 8.2, 8.3, 8.4]
laravel: [8, 9, 10, 11]
exclude:
- php: 8.2
laravel: 9
- php: 8.2
laravel: 8
- php: 8.2
laravel: 10
- php: 8.2
laravel: 11
- php: 8.3
laravel: 11
- php: 8.4
laravel: 11
name: PHP ${{ matrix.php }} - Laravel ${{ matrix.laravel }}
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick, fileinfo
ini-values: error_reporting=E_ALL
tools: composer:v2
coverage: none
- name: Setup problem matchers
run: |
echo "::add-matcher::${{ runner.tool_cache }}/php.json"
echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"
- name: Install dependencies
run: |
composer require "illuminate/support=^${{ matrix.laravel }}" --dev --no-update
composer update --prefer-dist --no-interaction --no-progress
- name: Execute tests
run: vendor/bin/phpunit --verbose