Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 12 additions & 15 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,29 +16,26 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: shivammathur/[email protected]
- name: Set up PHP environment
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
php-version: '${{ matrix.php }}'
tools: composer
extensions: 'xdebug'

- uses: actions/checkout@v2

- name: Install Composer dependencies & cache dependencies
uses: "ramsey/composer-install@v2"
with:
composer-options: "--prefer-dist"
custom-cache-key: "{{ runner.os }}-composer-${{ matrix.php }}"
env:
COMPOSER_ROOT_VERSION: dev-${{ github.event.repository.default_branch }}

- name: Validate composer.json and composer.lock
#run: composer validate --strict # Currently we’re installing mf2/tests from a commit ref.
run: composer validate

- name: Cache Composer packages
id: composer-cache
uses: actions/cache@v2
with:
path: vendor
key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-php-

- name: Install dependencies
run: composer install --prefer-dist --no-progress

- name: Run Test Suite
run: XDEBUG_MODE=coverage ./vendor/bin/phpunit tests --coverage-text

Expand Down