name: Tests

on: push

jobs:

  tests:
    name: PHP ${{ matrix.php }}
    
    runs-on: ubuntu-latest
    
    strategy:
      matrix:
        php: ['8.2', '8.3']

    steps:
      - name: Checkout code
        uses: actions/checkout@v2
      - name: Setup PHP
        uses: shivammathur/setup-php@v2
        with:
          php-version: ${{ matrix.php }}
      - name: Install composer dependencies
        run: composer install
      - name: Run tests via PHPUnit
        run: composer test
