8
8
9
9
strategy :
10
10
matrix :
11
- php : [8.0 , 8.1 , 8.2 ]
12
- laravel : [8 ]
11
+ php : [8.2 , 8.3 , 8.4 ]
12
+ laravel : [10, 11 ]
13
13
14
14
steps :
15
15
- name : Checkout code
16
- uses : actions/checkout@v3
16
+ uses : actions/checkout@v4
17
17
18
18
- name : Setup PHP
19
19
uses : shivammathur/setup-php@v2
@@ -23,17 +23,21 @@ jobs:
23
23
extensions : ctype, iconv, intl, json, mbstring, pdo, pdo_sqlite
24
24
coverage : none
25
25
26
- - name : Checkout Laravel 8 Sample
27
- if : matrix.laravel == 8
28
- uses : actions/checkout@v3
26
+ - name : Set Laravel version reference
27
+ run : echo "LV_REF=${MATRIX_LARAVEL%.*}" >> $GITHUB_ENV
28
+ env :
29
+ MATRIX_LARAVEL : ${{ matrix.laravel }}
30
+
31
+ - name : Checkout Laravel ${{ env.LV_REF }} Sample
32
+ uses : actions/checkout@v4
29
33
with :
30
34
repository : codeception/laravel-module-tests
31
35
path : framework-tests
32
- ref : main
36
+ ref : ${{ env.LV_REF }}.x
33
37
34
38
- name : Get composer cache directory
35
39
id : composer-cache
36
- run : echo "::set-output name= dir:: $(composer config cache-files-dir)"
40
+ run : echo "dir= $(composer config cache-files-dir)" >> $GITHUB_OUTPUT
37
41
38
42
- name : Cache composer dependencies
39
43
uses : actions/cache@v3
@@ -42,20 +46,27 @@ jobs:
42
46
key : ${{ runner.os }}-${{ matrix.php }}-composer-${{ hashFiles('composer.json') }}
43
47
restore-keys : ${{ runner.os }}-${{ matrix.php }}-composer-
44
48
49
+ - name : Install PHPUnit 11
50
+ run : composer require --dev --no-update "phpunit/phpunit=^11.0"
51
+
45
52
- name : Install dependencies
46
- run : composer install --prefer-dist --no-progress
53
+ run : |
54
+ composer require symfony/console:^6.0 || ^7.0 --no-update
55
+ composer require codeception/module-asserts="3.*" --no-update
56
+ composer update --prefer-dist --no-progress --no-dev
47
57
48
58
- name : Validate composer.json and composer.lock
49
- run : composer validate
59
+ run : composer validate --strict
50
60
working-directory : framework-tests
51
61
52
62
- name : Install Laravel Sample
53
63
run : |
54
64
composer remove codeception/module-laravel --dev --no-update
55
- composer install --no-progress
65
+ composer require phpunit/phpunit:^11.0 --dev --no-update
66
+ composer update --no-progress
56
67
working-directory : framework-tests
57
68
58
- - name : Prepare the test environment and run test suite
69
+ - name : Prepare the test environment
59
70
run : |
60
71
cp .env.testing .env
61
72
php artisan config:cache
0 commit comments