Skip to content

feat: introduce UnexpectedResponse exception #86

feat: introduce UnexpectedResponse exception

feat: introduce UnexpectedResponse exception #86

Workflow file for this run

# https://help.github.com/en/categories/automating-your-workflow-with-github-actions
on:
pull_request:
push:
branches:
- "master"
jobs:
composer-validate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: shivammathur/setup-php@v2
with:
coverage: none
extensions: mbstring
php-version: 8.3
- run: composer validate
static-code-analysis:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: shivammathur/setup-php@v2
with:
coverage: none
extensions: mbstring
php-version: 8.3
- run: composer install --no-interaction --no-progress
- run: vendor/bin/phpstan analyse --configuration=phpstan.neon
tests:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
php-version:
- 7.4
- 8.0
- 8.1
- 8.2
- 8.3
dependencies:
- lowest
- locked
- highest
steps:
- uses: actions/checkout@v2
- uses: shivammathur/setup-php@v2
with:
coverage: none
extensions: mbstring
php-version: ${{ matrix.php-version }}
- if: matrix.dependencies == 'lowest'
run: composer update --prefer-lowest --no-interaction --no-progress
- if: matrix.dependencies == 'locked'
run: composer install --no-interaction --no-progress
- if: matrix.dependencies == 'highest'
run: composer update --no-interaction --no-progress
- run: vendor/bin/phpunit
examples:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
example:
- custom-types
- input
- install
- php-keywords
- simple
- polymorphic
steps:
- uses: actions/checkout@v2
- uses: shivammathur/setup-php@v2
with:
coverage: none
extensions: mbstring
php-version: 8.3
env:
COMPOSER_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- run: cd examples/${{ matrix.example }} && ./test.sh
code-coverage:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: shivammathur/setup-php@v2
with:
coverage: pcov
extensions: mbstring
php-version: 8.3
- run: composer install --no-interaction --no-progress
- run: vendor/bin/phpunit --coverage-clover=build/logs/clover.xml
- uses: codecov/codecov-action@v2