fix plugin config/ #37
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI | |
| on: | |
| push: | |
| branches: | |
| - 'master' | |
| pull_request: | |
| branches: | |
| - '*' | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| jobs: | |
| testsuite: | |
| runs-on: ubuntu-24.04 | |
| services: | |
| mysql: | |
| image: mysql:9.6 | |
| env: | |
| MYSQL_ROOT_PASSWORD: root | |
| MYSQL_DATABASE: plugins_cakephp_test | |
| ports: | |
| - 3306:3306 | |
| options: >- | |
| --health-cmd="mysqladmin ping -h 127.0.0.1 -proot" | |
| --health-interval=10s | |
| --health-timeout=5s | |
| --health-retries=10 | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| include: | |
| - php-version: '8.4' | |
| dependencies: 'highest' | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - name: Setup PHP | |
| uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: ${{ matrix.php-version }} | |
| extensions: mbstring, intl, pdo_mysql, pdo_sqlite | |
| ini-values: zend.assertions=1 | |
| coverage: none | |
| - name: Composer install | |
| uses: ramsey/composer-install@v3 | |
| with: | |
| dependency-versions: ${{ matrix.dependencies }} | |
| composer-options: ${{ matrix.composer-options }} | |
| - name: Composer post install | |
| run: composer run-script post-install-cmd --no-interaction | |
| - name: Run PHPUnit | |
| run: vendor/bin/phpunit | |
| env: | |
| DATABASE_TEST_URL: mysql://root:root@127.0.0.1:3306/plugins_cakephp_test?encoding=utf8mb4 | |
| AUTH_ID_GITHUB: someid | |
| AUTH_SECRET_GITHUB: somesecret | |
| coding-standard: | |
| name: Coding Standard | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - name: Setup PHP | |
| uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: '8.4' | |
| extensions: mbstring, intl | |
| coverage: none | |
| tools: cs2pr | |
| - name: Composer install | |
| uses: ramsey/composer-install@v3 | |
| - name: Run PHP CodeSniffer | |
| run: vendor/bin/phpcs --report=checkstyle | cs2pr | |
| - name: Run PHPStan | |
| run: vendor/bin/phpstan analyse -c phpstan.neon --error-format=checkstyle | cs2pr | |
| - name: Setup rector cache | |
| uses: actions/cache@v5 | |
| with: | |
| path: ${{ runner.temp }}/rector | |
| key: ${{ runner.os }}-rector-${{ hashFiles('rector.php', 'composer.lock') }} | |
| restore-keys: ${{ runner.os }}-rector- | |
| - name: Create rector cache dir | |
| run: mkdir -p ${{ runner.temp }}/rector | |
| - name: Run rector | |
| env: | |
| RECTOR_CACHE_DIR: ${{ runner.temp }}/rector | |
| run: composer rector-setup && composer rector-check |