88
99 strategy :
1010 matrix :
11- php : [8.0 , 8.1 , 8.2 ]
12- laravel : [8 ]
11+ php : [8.2 , 8.3 , 8.4 ]
12+ laravel : [10, 11 ]
1313
1414 steps :
1515 - name : Checkout code
16- uses : actions/checkout@v3
16+ uses : actions/checkout@v4
1717
1818 - name : Setup PHP
1919 uses : shivammathur/setup-php@v2
@@ -23,17 +23,21 @@ jobs:
2323 extensions : ctype, iconv, intl, json, mbstring, pdo, pdo_sqlite
2424 coverage : none
2525
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
2933 with :
3034 repository : codeception/laravel-module-tests
3135 path : framework-tests
32- ref : main
36+ ref : ${{ env.LV_REF }}.x
3337
3438 - name : Get composer cache directory
3539 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
3741
3842 - name : Cache composer dependencies
3943 uses : actions/cache@v3
@@ -43,19 +47,22 @@ jobs:
4347 restore-keys : ${{ runner.os }}-${{ matrix.php }}-composer-
4448
4549 - 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
4754
4855 - name : Validate composer.json and composer.lock
49- run : composer validate
56+ run : composer validate --strict
5057 working-directory : framework-tests
5158
5259 - name : Install Laravel Sample
5360 run : |
5461 composer remove codeception/module-laravel --dev --no-update
55- composer install --no-progress
62+ composer update --no-progress
5663 working-directory : framework-tests
5764
58- - name : Prepare the test environment and run test suite
65+ - name : Prepare the test environment
5966 run : |
6067 cp .env.testing .env
6168 php artisan config:cache
0 commit comments