Skip to content

Commit 89896cf

Browse files
authored
Fix test config for CI
1 parent 5a7cee8 commit 89896cf

File tree

2 files changed

+20
-9
lines changed

2 files changed

+20
-9
lines changed

.github/workflows/run-tests.yml

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -18,28 +18,34 @@ jobs:
1818
fail-fast: true
1919
matrix:
2020
os: [ubuntu-latest]
21-
php: [8.1, '8.2']
21+
php: [8.1, '8.2', '8.3']
2222
laravel: ['10.*', '11.*', '12.*']
23-
stability: [prefer-lowest, prefer-stable]
23+
stability: [prefer-stable]
2424
include:
25-
- laravel: 10.*
26-
testbench: 8.*
27-
- laravel: 11.*
28-
testbench: 9.*
2925
- laravel: 12.*
3026
testbench: 10.*
31-
exclude:
3227
- laravel: 11.*
33-
php: 8.1
28+
testbench: 9.*
29+
- laravel: 10.*
30+
testbench: 8.*
31+
exclude:
3432
- laravel: 12.*
3533
php: 8.1
34+
- laravel: 11.*
35+
php: 8.1
3636

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

3939
steps:
4040
- name: Checkout code
4141
uses: actions/checkout@v4
4242

43+
- name: Cache dependencies
44+
uses: actions/cache@v3
45+
with:
46+
path: ~/.composer/cache/files
47+
key: dependencies-laravel-${{ matrix.laravel }}-php-${{ matrix.php }}-composer-${{ hashFiles('composer.json') }}
48+
4349
- name: Setup PHP
4450
uses: shivammathur/setup-php@v2
4551
with:
@@ -58,4 +64,4 @@ jobs:
5864
composer update --${{ matrix.stability }} --prefer-dist --no-interaction
5965
6066
- name: Execute tests
61-
run: vendor/bin/pest
67+
run: ./vendor/bin/pest

phpunit.xml.dist

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,11 @@
1818
beStrictAboutOutputDuringTests="true"
1919
verbose="true"
2020
>
21+
<source ignoreIndirectDeprecations="true" restrictNotices="true" restrictWarnings="true">
22+
<include>
23+
<directory suffix=".php">./src</directory>
24+
</include>
25+
</source>
2126
<testsuites>
2227
<testsuite name="Z3d0X Test Suite">
2328
<directory suffix=".test.php">tests/</directory>

0 commit comments

Comments
 (0)