Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix test workflow #3

Merged
merged 23 commits into from
Feb 21, 2025
30 changes: 11 additions & 19 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,34 +2,30 @@ name: run-tests

on:
push:
paths:
- '**.php'
- '.github/workflows/run-tests.yml'
- 'phpunit.xml.dist'
- 'composer.json'
- 'composer.lock'
branches: [main]
pull_request:
branches: [main]

jobs:
test:
runs-on: ${{ matrix.os }}
timeout-minutes: 5
strategy:
fail-fast: true
matrix:
os: [ubuntu-latest, windows-latest]
os: [ubuntu-latest]
php: [8.4, 8.3, 8.2, 8.1]
laravel: ["^12.0", "^11.0", "^10.0"]
stability: [prefer-lowest, prefer-stable]
include:
- laravel: "^12.0"
testbench: 10.*
- laravel: 11.*
- laravel: "^11.0"
testbench: 9.*
carbon: ^2.63
- laravel: 10.*
- laravel: "^10.0"
testbench: 8.*
carbon: ^2.63
exclude:
- laravel: "^11.0"
php: 8.1
- laravel: "^12.0"
php: 8.1

Expand All @@ -56,12 +52,8 @@ jobs:

- 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
composer update --${{ matrix.stability }} --prefer-dist --no-interaction

- name: List Installed Dependencies
run: composer show -D
composer require 'illuminate/contracts=${{ matrix.laravel }}.0' --no-update
composer update --prefer-dist --no-interaction --no-progress --${{ matrix.stability }}

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

run: vendor/bin/pest
24 changes: 10 additions & 14 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,23 +15,19 @@
}
],
"require": {
"php": "^8.2",
"spatie/laravel-package-tools": "^1.16",
"illuminate/contracts": "^9.0|^10.0|^11.0|^12.0"
"php": "^8.1",
"illuminate/contracts": "^10.0|^11.0|^12.0",
"spatie/laravel-package-tools": "^1.14.0"
},
"require-dev": {
"larastan/larastan": "^2.9|^3.0",
"laravel/pint": "^1.21",
"mockery/mockery": "^1.6",
"nunomaduro/collision": "^8.1.1|^7.10.0",
"composer/semver": "^3.4",
"laravel/pint": "^1.0",
"nunomaduro/larastan": "^2.0.1|^3.0",
"orchestra/testbench": "^8.0|^9.0|^10.0",
"pestphp/pest": "^2.0|^3.0",
"pestphp/pest-plugin-arch": "^2.0|^3.0",
"pestphp/pest-plugin-laravel": "^2.0|^3.0",
"phpstan/extension-installer": "^1.3",
"phpstan/phpstan-deprecation-rules": "^1.0|^2.0",
"phpstan/phpstan-phpunit": "^1.0|^2.0",
"spatie/laravel-ray": "^1.39"
"pestphp/pest": "^2.9|^3.0",
"pestphp/pest-plugin-laravel": "^2.9|^3.0",
"phpstan/extension-installer": "^1.1",
"spatie/laravel-ray": "^1.26"
},
"autoload": {
"psr-4": {
Expand Down
Loading