Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
freekmurze committed Mar 8, 2024
2 parents 75a36ff + 8bb51e3 commit 5c59c78
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 5 deletions.
19 changes: 16 additions & 3 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,22 @@ name: run-tests

on:
push:
branches: [main]
branches:
- main
pull_request:
branches: [main]
branches:
- main

jobs:
test:
runs-on: ${{ matrix.os }}

strategy:
fail-fast: true
matrix:
os: [ubuntu-latest]
php: [8.2, 8.1, 8.0, 7.4]
laravel: [10.*, 9.*, 8.*, 7.*]
laravel: ['7.*', '8.*', '9.*', '10.*', '11.*']
stability: [prefer-lowest, prefer-stable]
include:
- laravel: 10.*
Expand All @@ -25,6 +28,8 @@ jobs:
testbench: ^6.23
- laravel: 7.*
testbench: ^5.20
- laravel: 11.*
testbench: 9.*
exclude:
- php: 7.4
laravel: 10.*
Expand All @@ -36,6 +41,12 @@ jobs:
laravel: 7.*
- php: 8.2
laravel: 7.*
- laravel: 11.*
php: 8.1
- laravel: 11.*
php: 8.0
- laravel: 11.*
php: 7.4

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

Expand All @@ -54,9 +65,11 @@ jobs:
run: |
echo "::add-matcher::${{ runner.tool_cache }}/php.json"
echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"
- name: Install dependencies
run: |
composer require "laravel/framework:${{ matrix.laravel }}" "nesbot/carbon:^2.65" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
composer update --${{ matrix.stability }} --prefer-dist --no-interaction
- name: Execute tests
run: vendor/bin/phpunit
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@
],
"require": {
"php": "^7.4|^8.0",
"laravel/framework": "~5.8.0|^6.0|^7.0|^8.0|^9.0|^10.0",
"laravel/framework": "~5.8.0|^6.0|^7.0|^8.0|^9.0|^10.0|^11.0",
"league/glide": "^1.5|^1.6|^2.0"
},
"require-dev": {
"orchestra/testbench": "^5.20|^6.13|^7.0|^8.0"
"orchestra/testbench": "^5.20|^6.13|^7.0|^8.0|^9.0"
},
"autoload": {
"psr-4": {
Expand Down

0 comments on commit 5c59c78

Please sign in to comment.