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
@@ -43,19 +47,22 @@ jobs:
43
47
restore-keys : ${{ runner.os }}-${{ matrix.php }}-composer-
44
48
45
49
- name : Install dependencies
46
- run : composer install --prefer-dist --no-progress
50
+ run : |
51
+ composer require symfony/console:^6.0 || ^7.0 --no-update
52
+ composer require codeception/module-asserts="3.*" --no-update
53
+ composer update --prefer-dist --no-progress --no-dev
47
54
48
55
- name : Validate composer.json and composer.lock
49
- run : composer validate
56
+ run : composer validate --strict
50
57
working-directory : framework-tests
51
58
52
59
- name : Install Laravel Sample
53
60
run : |
54
61
composer remove codeception/module-laravel --dev --no-update
55
- composer install --no-progress
62
+ composer update --no-progress
56
63
working-directory : framework-tests
57
64
58
- - name : Prepare the test environment and run test suite
65
+ - name : Prepare the test environment
59
66
run : |
60
67
cp .env.testing .env
61
68
php artisan config:cache
0 commit comments