Skip to content

Fix display field not working when using non-default table in controller #27

Fix display field not working when using non-default table in controller

Fix display field not working when using non-default table in controller #27

Workflow file for this run

name: Title Plugin CI
on:
push:
branches:
- main
pull_request:
branches:
- '*'
jobs:
testsuite:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
php-version: ['8.1']
db-type: [sqlite, mysql]
name: PHP ${{ matrix.php-version }}
steps:
- uses: actions/checkout@v1
with:
fetch-depth: 1
- name: Setup Service
if: matrix.db-type == 'mysql'
run: |
sudo service mysql start
mysql -h 127.0.0.1 -u root -proot -e 'CREATE DATABASE title;'
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-version }}
extensions: mbstring, intl, pdo_${{ matrix.db-type }}
coverage: none
- name: composer install
run: |
composer install
- name: Run PHPUnit
run: |
if [[ ${{ matrix.db-type }} == 'sqlite' ]]; then export DB_URL='sqlite:///:memory:'; fi
if [[ ${{ matrix.db-type }} == 'mysql' ]]; then export DB_URL='mysql://root:root@127.0.0.1/cakephp'; fi
vendor/bin/phpunit
coding-standard:
name: Coding Standard
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
with:
fetch-depth: 1
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.1'
extensions: mbstring, intl
coverage: none
- name: composer install
run: composer install
- name: Run PHP CodeSniffer
run: composer cs-check
static-analysis:
name: Static Analysis
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
with:
fetch-depth: 1
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.1'
extensions: mbstring, intl
coverage: none
- name: composer install
run: composer require --dev phpstan/phpstan:^1.9
- name: Run phpstan
run: vendor/bin/phpstan.phar analyse