Skip to content

CakePHP 5.0 compatibility #13

CakePHP 5.0 compatibility

CakePHP 5.0 compatibility #13

Workflow file for this run

name: CI
on: [push, pull_request]
jobs:
testsuite:
runs-on: ubuntu-20.04
strategy:
fail-fast: false
matrix:
prefer-lowest: ['']
php-version: ['8.1', '8.2']
include:
- php-version: '8.1'
prefer-lowest: 'prefer-lowest'
steps:
- uses: actions/checkout@v3
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-version }}
extensions: mbstring, intl, pdo_${{ matrix.db-type }}
coverage: pcov
- name: Composer install
run: |
if ${{ matrix.prefer-lowest == 'prefer-lowest' }}; then
composer update --prefer-lowest --prefer-stable
else
composer install
fi
- name: Run PHPUnit
run: |
if [[ ${{ matrix.php-version }} == '7.4' ]]; then
vendor/bin/phpunit --coverage-clover=coverage.xml
else
vendor/bin/phpunit
fi
- name: Code Coverage Report
if: matrix.php-version == '7.4'
uses: codecov/codecov-action@v2
cs-stan:
name: Coding Standard & Static Analysis
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.1'
extensions: mbstring, intl
coverage: none
tools: vimeo/psalm:5
- name: Composer Install
run: composer install
- name: Run phpcs
run: vendor/bin/phpcs --report=checkstyle --standard=vendor/cakephp/cakephp-codesniffer/CakePHP src/ tests/
- name: Run psalm
if: always()
run: psalm --output-format=github