diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index 33f3bf7..02d4c07 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -16,19 +16,18 @@ jobs: strategy: fail-fast: true matrix: - os: [ubuntu-latest, windows-latest] - php: [8.2, 8.1, 8.0] - laravel: ['9.*', '10.*', '11.*', '12.*'] - stability: [prefer-lowest, prefer-stable] + os: [ ubuntu-latest, windows-latest ] + php: [ 8.2, 8.1, 8.0 ] + laravel: [ 9.*, 10.*, 11.*, 12.* ] include: - laravel: 9.* - - testbench: 7.* + testbench: 7.* - laravel: 10.* - testbench: ^8.0 + testbench: 8.* - laravel: 11.* - testbench: ^9.0 + testbench: 9.* - laravel: 12.* - testbench: ^10.0 + testbench: 10.* exclude: - laravel: 10.* php: 8.0 @@ -41,7 +40,7 @@ jobs: - laravel: 12.* php: 8.0 - name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.stability }} - ${{ matrix.os }} + name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.os }} steps: - name: Checkout code @@ -62,17 +61,17 @@ jobs: - name: Install dependencies run: | composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update - composer update --${{ matrix.stability }} --prefer-dist --no-interaction + composer update --prefer-dist --no-interaction - name: List Installed Dependencies run: composer show -D - name: Execute tests run: vendor/bin/pest - + - name: Run PHPStan shell: bash run: | LARAVEL_VERSION="${{ matrix.laravel }}" LARAVEL_VERSION="${LARAVEL_VERSION%%.*}" - vendor/bin/phpstan analyse -c "phpstan-${LARAVEL_VERSION}.neon" src \ No newline at end of file + vendor/bin/phpstan analyse -c "phpstan-${LARAVEL_VERSION}.neon" src