File tree Expand file tree Collapse file tree 1 file changed +12
-15
lines changed Expand file tree Collapse file tree 1 file changed +12
-15
lines changed Original file line number Diff line number Diff line change @@ -16,29 +16,26 @@ jobs:
1616 runs-on : ubuntu-latest
1717
1818 steps :
19- - uses : shivammathur/setup-php@2.11.0
19+ - name : Set up PHP environment
20+ uses : shivammathur/setup-php@v2
2021 with :
21- php-version : ${{ matrix.php }}
22+ php-version : ' ${{ matrix.php }}'
23+ tools : composer
2224 extensions : ' xdebug'
23-
2425 - uses : actions/checkout@v2
2526
27+ - name : Install Composer dependencies & cache dependencies
28+ uses : " ramsey/composer-install@v2"
29+ with :
30+ composer-options : " --prefer-dist"
31+ custom-cache-key : " {{ runner.os }}-composer-${{ matrix.php }}"
32+ env :
33+ COMPOSER_ROOT_VERSION : dev-${{ github.event.repository.default_branch }}
34+
2635 - name : Validate composer.json and composer.lock
2736 # run: composer validate --strict # Currently we’re installing mf2/tests from a commit ref.
2837 run : composer validate
2938
30- - name : Cache Composer packages
31- id : composer-cache
32- uses : actions/cache@v2
33- with :
34- path : vendor
35- key : ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
36- restore-keys : |
37- ${{ runner.os }}-php-
38-
39- - name : Install dependencies
40- run : composer install --prefer-dist --no-progress
41-
4239 - name : Run Test Suite
4340 run : XDEBUG_MODE=coverage ./vendor/bin/phpunit tests --coverage-text
4441
You can’t perform that action at this time.
0 commit comments