|
30 | 30 | extensions: mbstring, intl |
31 | 31 | coverage: pcov |
32 | 32 |
|
33 | | - - name: Get composer cache directory |
34 | | - id: composer-cache |
35 | | - run: echo "::set-output name=dir::$(composer config cache-files-dir)" |
36 | | - |
37 | | - - name: Get date part for cache key |
38 | | - id: key-date |
39 | | - run: echo "::set-output name=date::$(date +'%Y-%m')" |
40 | | - |
41 | | - - name: Cache composer dependencies |
42 | | - uses: actions/cache@v1 |
43 | | - with: |
44 | | - path: ${{ steps.composer-cache.outputs.dir }} |
45 | | - key: ${{ runner.os }}-composer-${{ steps.key-date.outputs.date }}-${{ hashFiles('composer.json') }}-${{ matrix.prefer-lowest }} |
46 | | - |
47 | | - - name: Composer Install |
48 | | - run: | |
49 | | - if [[ ${{ matrix.php-version }} == '8.0' ]]; then |
50 | | - composer install --ignore-platform-reqs |
51 | | - elif ${{ matrix.prefer-lowest == 'prefer-lowest' }}; then |
52 | | - composer update --prefer-lowest --prefer-stable |
53 | | - else |
54 | | - composer install |
55 | | - fi |
| 33 | + - name: Composer install |
| 34 | + uses: ramsey/composer-install@v3 |
56 | 35 |
|
57 | 36 | - name: Setup problem matchers for PHPUnit |
58 | 37 | if: matrix.php-version == '7.4' |
|
82 | 61 | tools: cs2pr |
83 | 62 | coverage: none |
84 | 63 |
|
85 | | - - name: Get composer cache directory |
86 | | - id: composer-cache |
87 | | - run: echo "::set-output name=dir::$(composer config cache-files-dir)" |
88 | | - |
89 | | - - name: Get date part for cache key |
90 | | - id: key-date |
91 | | - run: echo "::set-output name=date::$(date +'%Y-%m')" |
92 | | - |
93 | | - - name: Cache composer dependencies |
94 | | - uses: actions/cache@v1 |
95 | | - with: |
96 | | - path: ${{ steps.composer-cache.outputs.dir }} |
97 | | - key: ${{ runner.os }}-composer-${{ steps.key-date.outputs.date }}-${{ hashFiles('composer.json') }}-${{ matrix.prefer-lowest }} |
98 | | - |
99 | 64 | - name: Composer install |
100 | | - run: composer install |
| 65 | + uses: ramsey/composer-install@v3 |
101 | 66 |
|
102 | 67 | - name: Run PHP CodeSniffer |
103 | 68 | run: vendor/bin/phpcs --report=checkstyle CakePHP/ | cs2pr |
0 commit comments