Skip to content

Commit 2d074e1

Browse files
committed
Update Github Action
1 parent d45a207 commit 2d074e1

File tree

1 file changed

+21
-10
lines changed

1 file changed

+21
-10
lines changed

.github/workflows/run-tests.yml

Lines changed: 21 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,29 +2,37 @@ name: run-tests
22

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

912
jobs:
1013
test:
1114
runs-on: ${{ matrix.os }}
15+
timeout-minutes: 5
1216
strategy:
1317
fail-fast: true
1418
matrix:
15-
os: [ubuntu-latest, windows-latest]
16-
php: [8.1, 8.2]
17-
laravel: [10.*]
18-
stability: [prefer-lowest, prefer-stable]
19+
os: [ubuntu-latest]
20+
php: [8.3]
21+
laravel: [11.*, 10.*]
22+
stability: [prefer-stable]
1923
include:
24+
- laravel: 11.*
25+
testbench: 9.*`
26+
carbon: ^2.63
2027
- laravel: 10.*
2128
testbench: 8.*
29+
carbon: ^2.63
2230

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

2533
steps:
2634
- name: Checkout code
27-
uses: actions/checkout@v3
35+
uses: actions/checkout@v4
2836

2937
- name: Setup PHP
3038
uses: shivammathur/setup-php@v2
@@ -40,8 +48,11 @@ jobs:
4048
4149
- name: Install dependencies
4250
run: |
43-
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
51+
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" "nesbot/carbon:${{ matrix.os == 'windows-latest' && '^^^' || '' }}${{ matrix.carbon }}" --no-interaction --no-update
4452
composer update --${{ matrix.stability }} --prefer-dist --no-interaction
4553
54+
- name: List Installed Dependencies
55+
run: composer show -D
56+
4657
- name: Execute tests
47-
run: vendor/bin/pest
58+
run: vendor/bin/pest --ci

0 commit comments

Comments
 (0)