Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
e2bd2e4
Bump CakePHP version to 3.x
bancer Aug 24, 2023
aec0c3d
Add branch 3.x to CI
bancer Aug 24, 2023
3e522b9
Migrate to 3.x
bancer Aug 28, 2023
4922d26
Run composer install
bancer Aug 28, 2023
6834444
Adjust CI commands
bancer Aug 28, 2023
2e0d708
Adjust CI command
bancer Aug 28, 2023
ef52bfe
Relax requirements in composer.json
bancer Aug 28, 2023
014a7ba
Adjust CI commands
bancer Aug 28, 2023
12c1264
Remove unnecessary commas
bancer Aug 28, 2023
1d765b2
Adjust CI commands
bancer Aug 28, 2023
86f8d36
Adjust CI commands
bancer Aug 28, 2023
06d5cc1
Adjust CI commands
bancer Aug 28, 2023
0cebfa1
Adjust CI command
bancer Aug 28, 2023
51cb6de
Adjust CI command
bancer Aug 28, 2023
1e4fd6d
Adjust CI commands
bancer Aug 28, 2023
2ddd6d7
Adjust CI command
bancer Aug 28, 2023
7a733e0
Simplify CI config
bancer Aug 28, 2023
55cb35b
Adjust CI commands
bancer Aug 28, 2023
2c90cea
Fix code style errors
bancer Aug 28, 2023
e0c1d59
Rollback composer changes
bancer Aug 28, 2023
21f3fc3
Update CI command
bancer Aug 28, 2023
998c482
Install phpcs
bancer Aug 28, 2023
6a73216
Adjust CI command
bancer Aug 28, 2023
c2c3429
Set phpcs standard path
bancer Aug 28, 2023
20759c9
Replace tabs with spaces
bancer Aug 28, 2023
543a3f5
Replace tabs with spaces
bancer Aug 28, 2023
7f7ece7
Fix code style errors in ItemsFixture
bancer Aug 28, 2023
99c6140
Fix code style errors in test files
bancer Aug 28, 2023
62837b0
Fix code style errors in FilteredBehavior
bancer Aug 28, 2023
17f57b1
Fix code style errors in FilterHelper
bancer Aug 28, 2023
7394e54
Fix code style errors in FilterComponent
bancer Aug 28, 2023
35876c7
Fix code style errors
bancer Aug 28, 2023
82b43a7
Fix code style errors
bancer Aug 28, 2023
2160b6e
Add ctp files to code style checks
bancer Aug 28, 2023
64e6728
Fix code style errors
bancer Aug 28, 2023
9e42499
Fix code style errors
bancer Aug 29, 2023
4e24741
Update readme file
bancer Aug 29, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 0 additions & 37 deletions .github/actions/setup-cakephp/action.yml

This file was deleted.

55 changes: 0 additions & 55 deletions .github/actions/setup-database/action.yml

This file was deleted.

48 changes: 29 additions & 19 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ run-name: Pull to ${{ github.base_ref }} by ${{ github.actor }}

on:
pull_request:
branches: [master, develop]
branches: [master, develop, 3.x]

jobs:
Unit-Tests:
Expand All @@ -22,18 +22,17 @@ jobs:
mysql-version: '5.6'
- name: Check out repository code
uses: actions/checkout@v3
- name: Setup CakePHP
uses: ./.github/actions/setup-cakephp
- name: Setup database
uses: ./.github/actions/setup-database
- name: Install PHPUnit
- name: Install Dependencies
run: |
cd ./cakephp
composer require 'phpunit/phpunit=5.7'
cd ../
composer remove --dev phpstan/phpstan cakephp/cakephp-codesniffer overtrue/phplint --no-update
composer require 'cakephp/cakephp=3.10.5' 'phpunit/phpunit=5.7.0' --with-all-dependencies
shell: bash
- name: Create test database
run: mysql -u root -e "CREATE DATABASE cakephp_test"
shell: bash

- name: Unit Tests
run: ./cakephp/lib/Cake/Console/cake test Filter All --stderr -app ./cakephp/app
run: ./vendor/bin/phpunit ./tests

PHP-Lint:
runs-on: ubuntu-latest
Expand All @@ -58,13 +57,24 @@ jobs:
php-version: 7.4
- name: Check out repository code
uses: actions/checkout@v3
- name: Setup CakePHP
uses: ./.github/actions/setup-cakephp
- name: Install PHPUnit
run: composer require 'phpunit/phpunit=7.0'
- name: Install PHPStan
run: |
composer require --dev phpstan/phpstan
composer require --dev phpstan/phpstan-phpunit
- name: Install Dependencies
run: composer require 'cakephp/cakephp=3.10.5' 'phpunit/phpunit=7.0' phpstan/phpstan phpstan/phpstan-phpunit --with-all-dependencies
- name: PHPStan
run: vendor/bin/phpstan analyse --level=8 ./cakephp/plugins/Filter
run: vendor/bin/phpstan analyse --level=8 ./src ./tests

PHP-Code-Sniffer:
runs-on: ubuntu-latest
steps:
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 5.6
- name: Check out repository code
uses: actions/checkout@v3
- name: Install PHPCS
run: |
composer remove --dev phpstan/phpstan phpunit/phpunit overtrue/phplint --no-update
composer require cakephp/cakephp-codesniffer
vendor/bin/phpcs --config-set installed_paths /home/runner/work/cakephp-filter-plugin/cakephp-filter-plugin/vendor/cakephp/cakephp-codesniffer
- name: Run PHPCS
run: vendor/bin/phpcs --colors --parallel=16 -p --standard=CakePHP --extensions=php,ctp src/ tests/
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
/.settings/
/.buildpath
/.project
/.phplint-cache
/composer.lock
/vendor/
Loading