Skip to content

Replace InvalidArgumentException with ParameterValidationException #24

Replace InvalidArgumentException with ParameterValidationException

Replace InvalidArgumentException with ParameterValidationException #24

Workflow file for this run

name: PHP testing
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
run:
name: Run
runs-on: ${{ matrix.operating-system }}
strategy:
fail-fast: false
matrix:
operating-system: [ ubuntu-latest, macos-latest ] # windows-latest
php-versions: [ '5.6', '7.0', '7.1', '7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3' ]
env:
extensions: xdebug, curl, openssl, mbstring, json
key: cache-v3
steps:
- name: Checkout
uses: actions/checkout@v2
- uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
extensions: xdebug, curl, openssl, mbstring, json
- name: Validate composer.json and composer.lock
run: composer validate --strict
- name: Cache Composer packages
id: composer-cache
uses: actions/cache@v2
with:
path: vendor
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-composer-
- name: Install dependencies
run: composer install --prefer-dist --no-progress --no-interaction --no-suggest
- name: Run test suite
run: composer run-script test