Skip to content

Commit c9af8e0

Browse files
Feature/composer CI fix (#236)
* Attempt to fix composer for 5.6 * Remove predicate
1 parent aed8632 commit c9af8e0

File tree

1 file changed

+12
-15
lines changed

1 file changed

+12
-15
lines changed

.github/workflows/main.yml

Lines changed: 12 additions & 15 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)