Merge pull request #2 from loadsys/f/cakephp-50 #12
Workflow file for this run
This file contains 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 | |
permissions: | |
contents: read | |
jobs: | |
testsuite: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
php-version: ['8.2', '8.3'] | |
name: PHP ${{ matrix.php-version }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ matrix.php-version }} | |
extensions: mbstring, intl, pdo_sqlite | |
coverage: none | |
- name: Composer install | |
run: composer install --no-interaction | |
- name: Run PHPUnit | |
run: vendor/bin/phpunit tests/ | |
cs-stan: | |
name: Coding Standard & Static Analysis | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: '8.3' | |
extensions: mbstring, intl | |
coverage: none | |
- name: Composer install | |
run: composer install --no-interaction | |
- name: Run phpcs | |
run: vendor/bin/phpcs --standard=vendor/cakephp/cakephp-codesniffer/CakePHP src/ tests/ | |
- name: Run phpstan | |
if: success() || failure() | |
run: vendor/bin/phpstan analyse |