Skip to content

(fix) replace str_starts_with calls #38

(fix) replace str_starts_with calls

(fix) replace str_starts_with calls #38

Workflow file for this run

name: Testkit
on:
push:
paths:
- "**.php"
- "phpcs.xml"
- ".github/workflows/testkit.yml"
- "composer.json"
pull_request:
paths:
- "**.php"
- "phpcs.xml"
- ".github/workflows/testkit.yml"
- "composer.json"
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
php-versions: [ '7.1', '7.2', '8.1', '8.5' ]
name: PHP ${{ matrix.php-versions }}
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Setup PHP version
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
tools: composer
- name: Get php version
run: 'php -v'
- name: Setup Composer dependencies
run: |
if [ "${{ matrix.php-versions }}" == "7.1" ]; then
composer remove donatj/mock-webserver --dev --no-update
fi
composer update
- name: Run PHPUnit Tests
run: |
if [ "${{ matrix.php-versions }}" == "7.1" ]; then
php ./vendor/bin/phpunit ./tests/ --exclude-group=skip-71
else
php ./vendor/bin/phpunit ./tests/
fi
- name: Run PHPCS
if: matrix.php-versions == '8.1'
run: 'php ./vendor/bin/phpcs'