Skip to content

Commit d6a30ba

Browse files
authored
Merge pull request #3 from InnoGE/fix-test-workflow-2
Fix test workflow
2 parents f51f699 + f70f134 commit d6a30ba

File tree

2 files changed

+21
-33
lines changed

2 files changed

+21
-33
lines changed

.github/workflows/run-tests.yml

Lines changed: 11 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -2,34 +2,30 @@ name: run-tests
22

33
on:
44
push:
5-
paths:
6-
- '**.php'
7-
- '.github/workflows/run-tests.yml'
8-
- 'phpunit.xml.dist'
9-
- 'composer.json'
10-
- 'composer.lock'
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
118

129
jobs:
1310
test:
1411
runs-on: ${{ matrix.os }}
15-
timeout-minutes: 5
1612
strategy:
1713
fail-fast: true
1814
matrix:
19-
os: [ubuntu-latest, windows-latest]
15+
os: [ubuntu-latest]
2016
php: [8.4, 8.3, 8.2, 8.1]
2117
laravel: ["^12.0", "^11.0", "^10.0"]
2218
stability: [prefer-lowest, prefer-stable]
2319
include:
2420
- laravel: "^12.0"
2521
testbench: 10.*
26-
- laravel: 11.*
22+
- laravel: "^11.0"
2723
testbench: 9.*
28-
carbon: ^2.63
29-
- laravel: 10.*
24+
- laravel: "^10.0"
3025
testbench: 8.*
31-
carbon: ^2.63
3226
exclude:
27+
- laravel: "^11.0"
28+
php: 8.1
3329
- laravel: "^12.0"
3430
php: 8.1
3531

@@ -56,12 +52,8 @@ jobs:
5652

5753
- name: Install dependencies
5854
run: |
59-
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" "nesbot/carbon:${{ matrix.os == 'windows-latest' && '^^^' || '' }}${{ matrix.carbon }}" --no-interaction --no-update
60-
composer update --${{ matrix.stability }} --prefer-dist --no-interaction
61-
62-
- name: List Installed Dependencies
63-
run: composer show -D
55+
composer require 'illuminate/contracts=${{ matrix.laravel }}.0' --no-update
56+
composer update --prefer-dist --no-interaction --no-progress --${{ matrix.stability }}
6457
6558
- name: Execute tests
66-
run: vendor/bin/pest --ci
67-
59+
run: vendor/bin/pest

composer.json

Lines changed: 10 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -15,23 +15,19 @@
1515
}
1616
],
1717
"require": {
18-
"php": "^8.2",
19-
"spatie/laravel-package-tools": "^1.16",
20-
"illuminate/contracts": "^9.0|^10.0|^11.0|^12.0"
18+
"php": "^8.1",
19+
"illuminate/contracts": "^10.0|^11.0|^12.0",
20+
"spatie/laravel-package-tools": "^1.14.0"
2121
},
2222
"require-dev": {
23-
"larastan/larastan": "^2.9|^3.0",
24-
"laravel/pint": "^1.21",
25-
"mockery/mockery": "^1.6",
26-
"nunomaduro/collision": "^8.1.1|^7.10.0",
23+
"composer/semver": "^3.4",
24+
"laravel/pint": "^1.0",
25+
"nunomaduro/larastan": "^2.0.1|^3.0",
2726
"orchestra/testbench": "^8.0|^9.0|^10.0",
28-
"pestphp/pest": "^2.0|^3.0",
29-
"pestphp/pest-plugin-arch": "^2.0|^3.0",
30-
"pestphp/pest-plugin-laravel": "^2.0|^3.0",
31-
"phpstan/extension-installer": "^1.3",
32-
"phpstan/phpstan-deprecation-rules": "^1.0|^2.0",
33-
"phpstan/phpstan-phpunit": "^1.0|^2.0",
34-
"spatie/laravel-ray": "^1.39"
27+
"pestphp/pest": "^2.9|^3.0",
28+
"pestphp/pest-plugin-laravel": "^2.9|^3.0",
29+
"phpstan/extension-installer": "^1.1",
30+
"spatie/laravel-ray": "^1.26"
3531
},
3632
"autoload": {
3733
"psr-4": {

0 commit comments

Comments
 (0)