Skip to content

Fixes for issue UnimplementedInterfaceMethod: Method getsupportedtypes is not defined #414

Fixes for issue UnimplementedInterfaceMethod: Method getsupportedtypes is not defined

Fixes for issue UnimplementedInterfaceMethod: Method getsupportedtypes is not defined #414

name: Tests
on:
push:
pull_request:
jobs:
build:
name: test_and_lint
runs-on: ubuntu-latest
strategy:
matrix:
include:
- php: '8.1'
dependencies-preference: "--prefer-lowest"
- php: '8.2'
dependencies-preference: " "
- php: '8.2'
dependencies-preference: "--prefer-lowest"
- php: '8.3'
dependencies-preference: " "
- php: '8.3'
dependencies-preference: "--prefer-lowest"
fail-fast: false
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
coverage: "xdebug"
ini-values: date.timezone=America/New_York,memory_limit=-1,default_socket_timeout=60,session.gc_probability=0,apc.enable_cli=1,zend.assertions=1
php-version: "${{ matrix.php }}"
- name: Validate composer.json and composer.lock
run: composer validate --strict
- name: Cache Composer packages
id: composer-cache
uses: actions/cache@v4
with:
path: vendor
key: ${{ runner.os }}-php-${{ matrix.php }}-${{ hashFiles('./composer.json') }}
- name: Install dependencies
run: |
composer config --no-plugins allow-plugins.php-http/discovery true
COMPOSER_PROCESS_TIMEOUT=0 composer update --dev --no-interaction --with-all-dependencies ${{ matrix.dependencies-preference}}
- run: composer show
- name: Check style for only changed files
run: |
IFS=$'\n'; CHANGED_FILES=($(git diff --name-only --diff-filter=ACMRTUXB ${{ github.event.pull_request.base.sha }} ${{ github.sha }} )); unset IFS
EXTRA_ARGS=('--path-mode=intersection' '--' "${CHANGED_FILES[@]}")
PHP_CS_FIXER_IGNORE_ENV=1 composer check-style -- --using-cache=no "${EXTRA_ARGS[@]}"
- name: Composer Analyze
run: composer analyze
- name: Composer Test
run: composer test
- name: Composer Metrics
run: composer metrics
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: true
files: ./coverage.xml
flags: unittests
name: codecov-umbrella
verbose: true