Skip to content

Commit

Permalink
Fix test workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
authanram committed Feb 21, 2025
1 parent c162fcb commit 10a9f5d
Showing 1 changed file with 18 additions and 9 deletions.
27 changes: 18 additions & 9 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,23 @@ jobs:
fail-fast: true
matrix:
os: [ubuntu-latest, windows-latest]
php: [8.3, 8.2]
laravel: [11.*, 10.*]
php: [8.4, 8.3, 8.2, 8.1]
laravel: ["^12.0", "^11.0", "^10.0"]
stability: [prefer-lowest, prefer-stable]
include:
- laravel: 11.*
testbench: 9.*
carbon: ^2.63
- laravel: 10.*
testbench: 8.*
carbon: ^2.63
- laravel: "^12.0"
testbench: "10.*"
- laravel: "^11.0"
testbench: "9.*"
carbon: "^2.63"
- laravel: "^10.0"
testbench: "8.*"
carbon: "^2.63"
exclude:
- laravel: "^12.0"
php: 8.1
- laravel: "^11.0"
php: 8.1

name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.stability }} - ${{ matrix.os }}

Expand All @@ -46,6 +53,9 @@ jobs:
echo "::add-matcher::${{ runner.tool_cache }}/php.json"
echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"
- name: Remove larastan from dev dependencies
run: composer remove --dev nunomaduro/larastan

- name: Install dependencies
run: |
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" "nesbot/carbon:${{ matrix.os == 'windows-latest' && '^^^' || '' }}${{ matrix.carbon }}" --no-interaction --no-update
Expand All @@ -56,4 +66,3 @@ jobs:

- name: Execute tests
run: vendor/bin/pest --ci

0 comments on commit 10a9f5d

Please sign in to comment.