---
name: Tests

on:
    pull_request:
        branches:
            - master

env:
    # see https://github.com/composer/composer/issues/9368#issuecomment-718112361
    COMPOSER_ROOT_VERSION: "dev-master"

jobs:
    tests:
        runs-on: ubuntu-latest

        strategy:
            fail-fast: true
            matrix:
                laravel: [^6, ^7, ^8]
                php: [7.4, 8.0]

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

        steps:
            - uses: actions/checkout@v2
            # required for "git tag" presence for changelog-linker git tags resolver; default is 1
            # https://github.com/actions/checkout#fetch-all-tags
            - run: git fetch --depth=1 origin +refs/tags/*:refs/tags/*
            # see https://github.com/shivammathur/setup-php
            - uses: shivammathur/setup-php@v2
              with:
                  php-version: ${{ matrix.php }}
                  coverage: none

            - uses: "ramsey/composer-install@v1"
              with:
                  composer-options: ${{ matrix.composer-options }}

            - run: composer require "illuminate/support:${{ matrix.laravel }}" --no-interaction --no-update

            - run: vendor/bin/phpunit

---
name: Tests

on:
    pull_request:
        branches:
            - master

env:
    # see https://github.com/composer/composer/issues/9368#issuecomment-718112361
    COMPOSER_ROOT_VERSION: "dev-master"

jobs:
    tests:
        runs-on: ubuntu-latest

        strategy:
            fail-fast: true
            matrix:
                laravel: [^6, ^7, ^8, 9.0]
                php: [7.4, 8.0, 8.0]

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

        steps:
            - uses: actions/checkout@v2
            # required for "git tag" presence for changelog-linker git tags resolver; default is 1
            # https://github.com/actions/checkout#fetch-all-tags
            - run: git fetch --depth=1 origin +refs/tags/*:refs/tags/*
            # see https://github.com/shivammathur/setup-php
            - uses: shivammathur/setup-php@v2
              with:
                  php-version: ${{ matrix.php }}
                  coverage: none

            - uses: "ramsey/composer-install@v1"
              with:
                  composer-options: ${{ matrix.composer-options }}

            - run: composer require "illuminate/support:${{ matrix.laravel }}" --no-interaction --no-update

            - run: vendor/bin/phpunit

Update GitHub Actions for Laravel 9
Update GitHub Actions for Laravel 9
