Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 402920f

Browse files
committedJan 14, 2025·
Update CI
1 parent ba308fc commit 402920f

File tree

1 file changed

+18
-12
lines changed

1 file changed

+18
-12
lines changed
 

Diff for: ‎.github/workflows/main.yml

+18-12
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@ jobs:
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,21 @@ 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 codeception/module-asserts="3.*" --no-update
52+
composer update --prefer-dist --no-progress --no-dev
4753
4854
- name: Validate composer.json and composer.lock
49-
run: composer validate
55+
run: composer validate --strict
5056
working-directory: framework-tests
5157

5258
- name: Install Laravel Sample
5359
run: |
5460
composer remove codeception/module-laravel --dev --no-update
55-
composer install --no-progress
61+
composer update --no-progress
5662
working-directory: framework-tests
5763

58-
- name: Prepare the test environment and run test suite
64+
- name: Prepare the test environment
5965
run: |
6066
cp .env.testing .env
6167
php artisan config:cache

0 commit comments

Comments
 (0)
Please sign in to comment.