Skip to content

Update phpstan baseline #54

Update phpstan baseline

Update phpstan baseline #54

Workflow file for this run

name: run-tests
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: true
matrix:
os: [ubuntu-latest]
php: [8.1, 8.2]
laravel: [9.*, 10.*]
phpunit: [^9.5, ^10.0]
stability: [prefer-lowest, prefer-stable]
include:
- laravel: 9.*
testbench: ^7.9
- laravel: 10.*
testbench: 8.*
exclude:
- php: 8.2
laravel: 9.*
stability: prefer-lowest
- laravel: 9.*
phpunit: ^10.0
name: P${{ matrix.php }} - L${{ matrix.laravel }} - PU${{ matrix.phpunit }}- ${{ matrix.stability }} - ${{ matrix.os }}
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
coverage: none
- name: Setup problem matchers
run: |
echo "::add-matcher::${{ runner.tool_cache }}/php.json"
echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"
- name: Set Minimum PHP 8.1 Versions
run: |
composer require ramsey/collection:^1.2 brick/math:^0.9.3 --no-interaction --no-update
- name: Set Minimum PHP 8.2 Versions
run: |
composer require guzzlehttp/guzzle:^7.5 guzzlehttp/psr7:^2.4 predis/predis:^2.0.2 --no-interaction --no-update
if: matrix.php >= 8.2
- name: Install dependencies
run: |
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" "phpunit/phpunit:${{ matrix.phpunit }}" --no-interaction --no-update
composer update --${{ matrix.stability }} --prefer-dist --no-interaction
- name: Execute tests
run: vendor/bin/pest