name: CI

on: [push]

jobs:
  build-test:
    runs-on: ubuntu-latest
    continue-on-error: true
    strategy:
      matrix:
        php: [7.3, 7.4, 8.0, 8.1, 8.2]
        laravel: [6.*, 7.*, 8.*, 9.*, 10.*]
        exclude:
          - laravel: 6.*
            php: 8.1
          - laravel: 6.*
            php: 8.2
          - laravel: 7.*
            php: 8.1
          - laravel: 7.*
            php: 8.2
          - laravel: 9.*
            php: 7.3
          - laravel: 9.*
            php: 7.4
          - laravel: 10.*
            php: 7.3
          - laravel: 10.*
            php: 7.4
          - laravel: 10.*
            php: 8.0

    name: PHP ${{ matrix.php }} on Laravel ${{ matrix.laravel }}

    steps:
    - uses: actions/checkout@v2
    - uses: php-actions/composer@v6
      with:
        php_version: 8
    - uses: php-actions/phpunit@v3
      with:
        php_version: 8
