File tree Expand file tree Collapse file tree 2 files changed +7
-27
lines changed Expand file tree Collapse file tree 2 files changed +7
-27
lines changed Original file line number Diff line number Diff line change 26
26
php-version : 7.4
27
27
tools : phpstan, cs2pr
28
28
29
- - name : Get Composer cache directory
30
- id : composercache
31
- run : echo "::set-output name=dir::$(composer config cache-files-dir)"
32
-
33
- - name : Cache Composer dependencies
34
- uses : actions/cache@v2
35
- with :
36
- path : ${{ steps.composercache.outputs.dir }}
37
- key : ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }}
38
- restore-keys : ${{ runner.os }}-composer-
39
-
40
29
- name : Install Composer dependencies
41
- run : composer install --no-progress --prefer-dist --optimize-autoloader
30
+ uses : ramsey/ composer-install@v1
42
31
43
32
- name : Cache PHPStan
44
33
uses : actions/cache@v2
Original file line number Diff line number Diff line change @@ -49,22 +49,13 @@ jobs:
49
49
php-version : ${{ matrix.php-version }}
50
50
coverage : ${{ matrix.coverage && 'pcov' || 'none' }}
51
51
52
- - name : Get Composer cache directory
53
- id : composercache
54
- run : echo "::set-output name=dir::$(composer config cache-files-dir)"
55
-
56
- - name : Cache Composer dependencies
57
- uses : actions/cache@v2
58
- with :
59
- path : ${{ steps.composercache.outputs.dir }}
60
- key : ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }}
61
- restore-keys : ${{ runner.os }}-composer-
62
-
63
52
- name : Install Composer dependencies
64
- run : |
65
- composer update --no-progress --prefer-dist --optimize-autoloader \
66
- --with matomo/device-detector:${{ matrix.device-detector-version }} \
67
- --with symfony/framework-bundle:${{ matrix.symfony-version }}
53
+ uses : ramsey/composer-install@v1
54
+ with :
55
+ dependency-versions : highest
56
+ composer-options : >
57
+ --with matomo/device-detector:${{ matrix.device-detector-version }}
58
+ --with symfony/framework-bundle:${{ matrix.symfony-version }}
68
59
69
60
- name : Run PHPUnit
70
61
run : vendor/bin/phpunit --testdox ${{ matrix.coverage && '--coverage-clover coverage.xml' || '--no-coverage' }}
You can’t perform that action at this time.
0 commit comments