Merge pull request #136 from limosa-io/optional-cursor-pagination #414
Workflow file for this run
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', 'pull_request'] | |
| permissions: | |
| contents: read | |
| packages: write | |
| jobs: | |
| tests: | |
| runs-on: ubuntu-latest | |
| continue-on-error: true | |
| strategy: | |
| matrix: | |
| php: [8.0, 8.1, 8.2] | |
| laravel: [10.*, 11.*, 12.*] | |
| exclude: | |
| - laravel: 10.* | |
| php: 8.0 | |
| - laravel: 11.* | |
| php: 7.3 | |
| - laravel: 11.* | |
| php: 7.4 | |
| - laravel: 11.* | |
| php: 8.0 | |
| - laravel: 11.* | |
| php: 8.1 | |
| - laravel: 12.* | |
| php: 7.3 | |
| - laravel: 12.* | |
| php: 7.4 | |
| - laravel: 12.* | |
| php: 8.0 | |
| - laravel: 12.* | |
| php: 8.1 | |
| name: PHP ${{ matrix.php }} on Laravel ${{ matrix.laravel }} | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v2 | |
| - name: Setup PHP | |
| uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: ${{ matrix.php }} | |
| - name: Install dependencies | |
| run: | | |
| composer require "illuminate/console:${{ matrix.laravel }}" "illuminate/database:${{ matrix.laravel }}" "illuminate/support:${{ matrix.laravel }}" --no-interaction --no-update | |
| composer update | |
| - name: Run tests | |
| run: vendor/bin/phpunit | |
| docker: | |
| # Only push Docker image for direct pushes to master branch | |
| if: github.event_name == 'push' && github.ref == 'refs/heads/master' | |
| runs-on: ubuntu-latest | |
| needs: tests | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Log in to the Container registry | |
| uses: docker/login-action@v3 | |
| with: | |
| registry: ghcr.io | |
| username: ${{ github.actor }} | |
| password: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Build and push Docker image | |
| uses: docker/build-push-action@v5 | |
| with: | |
| context: . | |
| push: true | |
| tags: ghcr.io/${{ github.repository }}:latest |