feat(demo): add UID-based load-more pagination and lazy message hydra… #13
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: [ main ] | |
| pull_request: | |
| branches: [ main ] | |
| permissions: | |
| contents: read | |
| jobs: | |
| ci: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| php: [8.1, 8.2] | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Setup PHP | |
| uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: ${{ matrix.php }} | |
| extensions: imap, mbstring | |
| coverage: none | |
| - name: Get Composer Cache | |
| uses: actions/cache@v4 | |
| with: | |
| path: vendor | |
| key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock','phpunit.xml') }} | |
| restore-keys: | | |
| ${{ runner.os }}-composer- | |
| - name: Install dependencies | |
| run: composer install --prefer-dist --no-progress --no-interaction | |
| - name: Run PHPStan (level 8) | |
| run: ./vendor/bin/phpstan analyse --level=8 src/ | |
| - name: Run tests | |
| # try PHPUnit first; adjust if you use Pest or other runner | |
| run: | | |
| if [ -x ./vendor/bin/phpunit ]; then | |
| ./vendor/bin/phpunit --configuration phpunit.xml --colors=always --testdox | |
| elif [ -x ./vendor/bin/pest ]; then | |
| ./vendor/bin/pest --min | |
| else | |
| echo "No test runner found (phpunit/pest). Ensure composer install created vendor binaries." | |
| exit 1 | |
| fi |