Skip to content

try to exclude duplicate classes (skeleton & base app) from classmap #78

try to exclude duplicate classes (skeleton & base app) from classmap

try to exclude duplicate classes (skeleton & base app) from classmap #78

Workflow file for this run

name: Tests
on:
push:
branches:
- '2.x'
pull_request:
branches:
- '*'
permissions:
contents: read
jobs:
linux-tests:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
php-version:
- '8.0'
- '8.1'
- '8.2'
db-type:
- mysql
- sqlite
services:
mysql:
image: mysql:5.7
env:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: cakephp_test
ports:
- 3306:3306
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3
redis:
image: redis
ports:
- 6379:6379
memcached:
image: memcached
ports:
- 11211:11211
env:
DB: ${{ matrix.db-type }}
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install PHP with extensions
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-version }}
extensions: apcu, memcache, memcached, redis, mcrypt, pdo_mysql, pdo_sqlite
ini-values: |
assert.exception=1,
zend.assertions=1,
error_reporting=-1,
log_errors_max_len=0,
display_errors=On,
apc.enable_cli=1
tools: composer
- name: locale-gen
run: |
sudo locale-gen de_DE;
sudo locale-gen es_ES;
- name: Create Another Databases for MySQL
if: matrix.db-type == 'mysql'
run: |
env MYSQL_PWD=root mysql -h 127.0.0.1 -u root -e 'CREATE DATABASE cakephp_test2;';
env MYSQL_PWD=root mysql -h 127.0.0.1 -u root -e 'CREATE DATABASE cakephp_test3;';
- name: Make temporary directories writable
run: chmod -R 777 ./app/tmp
- name: Composer get cache directory
id: composer-cache
run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
- name: Cache Composer
uses: actions/cache@v3
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-php${{ matrix.php-version }}-composer-${{ hashFiles('**/composer.json') }}
restore-keys: |
${{ runner.os }}-php${{ matrix.php-version }}-composer-
- name: Install Composer Packages
run: composer install --no-ansi --no-interaction --no-progress
- name: Copy database.php
run: cp ./.github/workflows/configs/database.php ./app/Config/
- name: Run Tests
run: ./vendor/bin/phpunit