Skip to content

Skip in_array() check for empty excludes list #24

Skip in_array() check for empty excludes list

Skip in_array() check for empty excludes list #24

Workflow file for this run

name: 'Run Tests'
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-latest
continue-on-error: ${{ matrix.can-fail }}
strategy:
fail-fast: true
matrix:
php: ['8.2', '8.3']
composer-flags: ['--prefer-stable']
can-fail: [false]
include:
- php: '8.2'
composer-flags: '--prefer-stable --prefer-lowest'
can-fail: false
name: "PHP ${{ matrix.php }}${{ matrix.composer-flags != '' && format(' - Composer {0}', matrix.composer-flags) || '' }}"
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
tools: composer:v2
extensions: curl, iconv, mbstring, session, sockets, sqlite, zip
coverage: none
- name: Install dependencies
run: composer update ${{ matrix.composer-flags }} --prefer-dist --no-suggest
- name: Execute tests
run: vendor/bin/phpunit