Throw the exceptions caught by the request parser so the error handli… #32
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: '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@v4 | |
- 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 |