diff --git a/.github/workflows/phpunit-l10.yml b/.github/workflows/phpunit-l10.yml index cd4c776..2d0148d 100644 --- a/.github/workflows/phpunit-l10.yml +++ b/.github/workflows/phpunit-l10.yml @@ -1,50 +1,55 @@ name: Run PHPUnit tests on: - push: - branches: - - master - pull_request: - branches: - - master + push: + branches: + - master + pull_request: + branches: + - master jobs: - tests: - runs-on: ubuntu-latest - - strategy: - fail-fast: false - matrix: - php: [8.1] - laravel: [10.*] - dependency: [prefer-lowest, prefer-stable] - include: - - laravel: 10.* - testbench: 8.* - - name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.dependency }} - - steps: - - name: Checkout code - uses: actions/checkout@v3 - - - name: Cache dependencies - uses: actions/cache@v3 - with: - path: ~/.composer/cache/files - key: dependencies-laravel-${{ matrix.laravel }}-php-${{ matrix.php }}-composer-${{ hashFiles('composer.json') }} - - - name: Setup PHP - uses: shivammathur/setup-php@v2 - with: - php-version: ${{ matrix.php }} - extensions: dom, curl, libxml, mbstring, pcntl, intl, exif, iconv - coverage: none - - - name: Install dependencies - run: | - composer require "illuminate/support:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update --no-progress - composer update --${{ matrix.dependency }} --prefer-dist --no-interaction --no-suggest --no-progress - - - name: Execute tests - run: vendor/bin/phpunit + tests: + runs-on: ubuntu-latest + + strategy: + fail-fast: false + matrix: + php: [8.1, '8.2'] + laravel: ['10.*', '11.*'] + dependency: [prefer-lowest, prefer-stable] + include: + - laravel: 10.* + testbench: 8.* + - laravel: 11.* + testbench: 9.* + exclude: + - laravel: 11.* + php: 8.1 + + name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.dependency }} + + steps: + - name: Checkout code + uses: actions/checkout@v3 + + - name: Cache dependencies + uses: actions/cache@v3 + with: + path: ~/.composer/cache/files + key: dependencies-laravel-${{ matrix.laravel }}-php-${{ matrix.php }}-composer-${{ hashFiles('composer.json') }} + + - name: Setup PHP + uses: shivammathur/setup-php@v2 + with: + php-version: ${{ matrix.php }} + extensions: dom, curl, libxml, mbstring, pcntl, intl, exif, iconv + coverage: none + + - name: Install dependencies + run: | + composer require "illuminate/support:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update --no-progress + composer update --${{ matrix.dependency }} --prefer-dist --no-interaction --no-suggest --no-progress + + - name: Execute tests + run: vendor/bin/phpunit diff --git a/.github/workflows/phpunit-l8.yml b/.github/workflows/phpunit-l8.yml index 1c72945..cc6c2bb 100644 --- a/.github/workflows/phpunit-l8.yml +++ b/.github/workflows/phpunit-l8.yml @@ -1,50 +1,61 @@ name: Run PHPUnit tests on: - push: - branches: - - master - pull_request: - branches: - - master + push: + branches: + - master + pull_request: + branches: + - master jobs: - tests: - runs-on: ubuntu-latest - - strategy: - fail-fast: false - matrix: - php: [8.0, 7.4, 7.3, 8.1] - laravel: [8.*] - dependency: [prefer-lowest, prefer-stable] - include: - - laravel: 8.* - testbench: ^6.23 - - name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.dependency }} - - steps: - - name: Checkout code - uses: actions/checkout@v3 - - - name: Cache dependencies - uses: actions/cache@v3 - with: - path: ~/.composer/cache/files - key: dependencies-laravel-${{ matrix.laravel }}-php-${{ matrix.php }}-composer-${{ hashFiles('composer.json') }} - - - name: Setup PHP - uses: shivammathur/setup-php@v2 - with: - php-version: ${{ matrix.php }} - extensions: dom, curl, libxml, mbstring, pcntl, intl, exif, iconv - coverage: none - - - name: Install dependencies - run: | - composer require "illuminate/support:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update --no-progress - composer update --${{ matrix.dependency }} --prefer-dist --no-interaction --no-suggest --no-progress - - - name: Execute tests - run: vendor/bin/phpunit + tests: + runs-on: ubuntu-latest + + strategy: + fail-fast: false + matrix: + php: [7.3, 7.4, 8.0, 8.1, '8.2'] + laravel: ['8.*', '11.*'] + dependency: [prefer-lowest, prefer-stable] + include: + - laravel: 8.* + testbench: ^6.23 + - laravel: 11.* + testbench: ^9.0 + exclude: + - laravel: 11.* + php: 7.3 + - laravel: 11.* + php: 7.4 + - laravel: 11.* + php: 8.0 + - laravel: 11.* + php: 8.1 + + name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.dependency }} + + steps: + - name: Checkout code + uses: actions/checkout@v3 + + - name: Cache dependencies + uses: actions/cache@v3 + with: + path: ~/.composer/cache/files + key: dependencies-laravel-${{ matrix.laravel }}-php-${{ matrix.php }}-composer-${{ hashFiles('composer.json') }} + + - name: Setup PHP + uses: shivammathur/setup-php@v2 + with: + php-version: ${{ matrix.php }} + extensions: dom, curl, libxml, mbstring, pcntl, intl, exif, iconv + coverage: none + + - name: Install dependencies + run: | + composer require "illuminate/support:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update --no-progress + composer update --${{ matrix.dependency }} --prefer-dist --no-interaction --no-suggest --no-progress + + - name: Execute tests + run: vendor/bin/phpunit diff --git a/.github/workflows/phpunit-l9.yml b/.github/workflows/phpunit-l9.yml index 1939565..5c8a991 100644 --- a/.github/workflows/phpunit-l9.yml +++ b/.github/workflows/phpunit-l9.yml @@ -1,50 +1,57 @@ name: Run PHPUnit tests on: - push: - branches: - - master - pull_request: - branches: - - master + push: + branches: + - master + pull_request: + branches: + - master jobs: - tests: - runs-on: ubuntu-latest - - strategy: - fail-fast: false - matrix: - php: [8.0, 8.1] - laravel: [9.*] - dependency: [prefer-lowest, prefer-stable] - include: - - laravel: 9.* - testbench: 7.* - - name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.dependency }} - - steps: - - name: Checkout code - uses: actions/checkout@v3 - - - name: Cache dependencies - uses: actions/cache@v3 - with: - path: ~/.composer/cache/files - key: dependencies-laravel-${{ matrix.laravel }}-php-${{ matrix.php }}-composer-${{ hashFiles('composer.json') }} - - - name: Setup PHP - uses: shivammathur/setup-php@v2 - with: - php-version: ${{ matrix.php }} - extensions: dom, curl, libxml, mbstring, pcntl, intl, exif, iconv - coverage: none - - - name: Install dependencies - run: | - composer require "illuminate/support:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update --no-progress - composer update --${{ matrix.dependency }} --prefer-dist --no-interaction --no-suggest --no-progress - - - name: Execute tests - run: vendor/bin/phpunit + tests: + runs-on: ubuntu-latest + + strategy: + fail-fast: false + matrix: + php: [8.0, 8.1, '8.2'] + laravel: ['9.*', '11.*'] + dependency: [prefer-lowest, prefer-stable] + include: + - laravel: 9.* + testbench: 7.* + - laravel: 11.* + testbench: 9.* + exclude: + - laravel: 11.* + php: 8.0 + - laravel: 11.* + php: 8.1 + + name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.dependency }} + + steps: + - name: Checkout code + uses: actions/checkout@v3 + + - name: Cache dependencies + uses: actions/cache@v3 + with: + path: ~/.composer/cache/files + key: dependencies-laravel-${{ matrix.laravel }}-php-${{ matrix.php }}-composer-${{ hashFiles('composer.json') }} + + - name: Setup PHP + uses: shivammathur/setup-php@v2 + with: + php-version: ${{ matrix.php }} + extensions: dom, curl, libxml, mbstring, pcntl, intl, exif, iconv + coverage: none + + - name: Install dependencies + run: | + composer require "illuminate/support:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update --no-progress + composer update --${{ matrix.dependency }} --prefer-dist --no-interaction --no-suggest --no-progress + + - name: Execute tests + run: vendor/bin/phpunit