@@ -41,22 +41,36 @@ jobs:
4141 uses : actions/checkout@v2
4242
4343 - name : Setup PHP
44- uses : shivammathur/setup-php@v1
44+ uses : shivammathur/setup-php@v2
4545 with :
4646 php-version : ${{ matrix.php-version }}
4747 ini-values : pcov.directory=$GITHUB_WORKSPACE
4848 coverage : pcov
4949
50- - name : Get composer cache directory
50+ - name : Get Composer data directory
51+ id : composer-data
52+ run : echo '::set-output name=dir::$(composer config data-dir)'
53+
54+ - name : Cache Composer data
55+ uses : actions/cache@v1
56+ with :
57+ path : ${{ steps.composer-data.outputs.dir }}
58+ key : ${{ runner.os }}-composer-data-${{ hashFiles('**/composer.json') }}
59+ restore-keys : ${{ runner.os }}-composer-data-
60+
61+ - name : Get Composer cache directory
5162 id : composer-cache
5263 run : echo '::set-output name=dir::$(composer config cache-files-dir)'
5364
5465 - name : Cache dependencies
5566 uses : actions/cache@v1
5667 with :
5768 path : ${{ steps.composer-cache.outputs.dir }}
58- key : ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }}
59- restore-keys : ${{ runner.os }}-composer-
69+ key : ${{ runner.os }}-composer-cache-${{ hashFiles('**/composer.json') }}
70+ restore-keys : ${{ runner.os }}-composer-cache-
71+
72+ - name : Install prestissimo
73+ run : composer global outdated --strict hirak/prestissimo || composer global require hirak/prestissimo
6074
6175 - name : Install dependencies
6276 run : composer update --no-progress --no-suggest ${{ matrix.composer_flags }}
0 commit comments