@@ -15,15 +15,34 @@ jobs:
1515 os : [ ubuntu-latest, macos-latest, windows-latest ]
1616 stability : [ lowest, stable ]
1717 steps :
18+ - name : Set Git To Use LF
19+ run : |
20+ git config --global core.autocrlf false
21+ git config --global core.eol lf
1822 - name : Checkout
19- uses : actions/checkout@v5
20-
21- - name : [${{ matrix.stability }}] Setup PHP ${{ matrix.php }} Environment
22- uses : ./.github/actions/setup-php
23+ uses : actions/checkout@v7
24+ - name : Setup PHP ${{ matrix.php }}
25+ uses : shivammathur/setup-php@v2
2326 with :
24- os : ${{ matrix.os }}
25- php : ${{ matrix.php }}
26- stability : ${{ matrix.stability }}
27-
27+ php-version : ${{ matrix.php }}
28+ ini-values : " memory_limit=-1"
29+ - name : Validate Composer
30+ run : composer validate
31+ - name : Get Composer Cache Directory
32+ id : composer-cache
33+ run : echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
34+ - name : Restore Composer Cache
35+ uses : actions/cache@v5
36+ with :
37+ path : ${{ steps.composer-cache.outputs.dir }}
38+ key : ${{ runner.os }}-${{ matrix.php }}-composer-${{ hashFiles('**/composer.json') }}
39+ restore-keys : ${{ runner.os }}-${{ matrix.php }}-composer-
40+ - name : Install Dependencies
41+ uses : nick-invision/retry@v4
42+ with :
43+ timeout_minutes : 5
44+ max_attempts : 3
45+ command : composer update --prefer-${{ matrix.stability }} --prefer-dist --no-interaction --no-progress
46+ # Action
2847 - name : Execute Tests
2948 run : composer test
0 commit comments