v1.1.1 #6
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: PHP CI | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| permissions: | |
| contents: read | |
| concurrency: | |
| group: codeigniter4-ci-${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| floor: | |
| name: PHP 8.2 / CodeIgniter 4.3.8 | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Set up PHP | |
| uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: '8.2' | |
| coverage: pcov | |
| tools: composer | |
| extensions: pcntl | |
| - name: Pin CodeIgniter 4.3 | |
| run: composer require --no-update codeigniter4/framework:^4.3.8 | |
| - name: Install dependencies | |
| run: composer update --prefer-dist --no-progress --no-interaction | |
| - name: Run PHPStan | |
| run: composer run phpstan | |
| - name: Run PHPUnit | |
| run: composer run test -- --coverage-text | |
| upper-bound: | |
| name: PHP 8.4 / CodeIgniter 4.7.2 | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Set up PHP | |
| uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: '8.4' | |
| coverage: none | |
| tools: composer | |
| extensions: pcntl | |
| - name: Pin CodeIgniter 4.7.2 | |
| run: composer require --no-update codeigniter4/framework:4.7.2 | |
| - name: Install dependencies | |
| run: composer update --prefer-dist --no-progress --no-interaction | |
| - name: Run PHPStan | |
| run: composer run phpstan | |
| - name: Run PHPUnit | |
| run: composer run test -- --no-coverage --do-not-fail-on-risky |