Skip to content

Commit ee7c81b

Browse files
authored
ci: further improve tests
1 parent d7d3380 commit ee7c81b

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

.github/workflows/tests.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,9 @@ jobs:
2121
fail-fast: true
2222
matrix:
2323
php: [8.2, 8.3, 8.4]
24+
stability: [prefer-lowest, prefer-stable]
2425

25-
name: PHP ${{ matrix.php }}
26+
name: PHP ${{ matrix.php }} - ${{ matrix.stability }}
2627

2728
steps:
2829
- name: Checkout code
@@ -33,13 +34,19 @@ jobs:
3334
with:
3435
php-version: ${{ matrix.php }}
3536
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite
37+
ini-values: error_reporting=E_ALL
38+
tools: composer:v2
3639
coverage: none
3740

3841
- name: Copy testing .env
3942
run: cp .env.testing .env
4043

4144
- name: Install dependencies
42-
run: composer install --no-interaction --no-progress
45+
uses: nick-fields/retry@v3
46+
with:
47+
timeout_minutes: 5
48+
max_attempts: 5
49+
command: composer install --${{ matrix.stability }} --no-interaction --no-progress
4350

4451
- name: Generate app key
4552
run: php artisan key:generate

0 commit comments

Comments
 (0)