Fix(Validator): Ensure assertIsType validates exception contract (GH-263) #185
Workflow file for this run
This file contains hidden or 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
################################################################################## | |
# | |
# Laravel API Response Builder Unit tests Github Action config | |
# | |
# @author Marcin Orlowski <mail (#) marcinOrlowski (.) com> | |
# @copyright 2016-2025 Marcin Orlowski | |
# @license http://www.opensource.org/licenses/mit-license.php MIT | |
# @link https://github.com/MarcinOrlowski/laravel-api-response-builder | |
# | |
################################################################################## | |
name: "Unit Tests" | |
on: | |
push: | |
branches: | |
- "master" | |
pull_request: | |
branches: | |
- "master" | |
- "dev" | |
jobs: | |
tests: | |
strategy: | |
# do not stop the workflow if single run failed | |
fail-fast: false | |
matrix: | |
# quotes are needed it is treated as a number and zero at decimal part is gone | |
# at runtime i.e. 8.10 -> 8.1, while "8.10" => "8.10". | |
laravel: ["12.0"] | |
php: ["8.2", "8.3", "8.4"] | |
runs-on: ubuntu-latest | |
steps: | |
# https://github.com/marketplace/actions/setup-php-action | |
- name: "Setup PHP ${{ matrix.php }}" | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: "${{ matrix.php }}" | |
# https://github.com/marketplace/actions/checkout | |
- name: "Checkout repository..." | |
uses: actions/checkout@v4 | |
- name: "Running PHPUnit..." | |
shell: bash | |
run: | | |
curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer | |
/usr/local/bin/composer install --no-interaction | |
/usr/local/bin/composer test |