Skip to content

Commit

Permalink
test phpunit 9.3
Browse files Browse the repository at this point in the history
  • Loading branch information
jordisala1991 committed Aug 29, 2020
1 parent 0c42eda commit aa76831
Showing 1 changed file with 18 additions and 5 deletions.
23 changes: 18 additions & 5 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,27 +25,35 @@ jobs:
- '7.2'
- '7.3'
- '7.4'
phpunit-version: ['8.5']
dependencies: [highest]
allowed_to_fail: [false]
variant: [normal]
include:
- php-version: '7.2'
phpunit-version: '8.5'
dependencies: lowest
allowed_to_fail: false
variant: normal
- php-version: '8.0'
phpunit-version: '9.3'
dependencies: highest
allowed_to_fail: true
variant: normal
- php-version: '7.3'
phpunit-version: '8.5'
dependencies: highest
allowed_to_fail: false
variant: 'symfony/symfony:"4.4.*"'
- php-version: '7.3'
phpunit-version: '8.5'
dependencies: highest
allowed_to_fail: false
variant: 'sonata-project/block-bundle:"3.*"'

env:
SYMFONY_PHPUNIT_VERSION: ${{ matrix.phpunit-version }}

steps:
- name: Checkout
uses: actions/checkout@v2
Expand Down Expand Up @@ -75,21 +83,26 @@ jobs:
if: matrix.variant != 'normal'
run: composer require ${{ matrix.variant }} --no-update

- name: Configuration required for PHP 8.0
if: matrix.php-version == '8.0'
run: composer config platform.php 7.4.99 && composer require phpunit/phpunit --no-update

- name: Install Composer dependencies (lowest)
if: matrix.dependencies == 'lowest'
run: composer update --prefer-dist --no-progress --no-interaction --prefer-stable --prefer-lowest

- name: Install Composer dependencies (highest)
if: matrix.dependencies == 'highest' && matrix.php-version != '8.0'
if: matrix.dependencies == 'highest'
run: composer update --prefer-dist --no-progress --no-interaction --prefer-stable

- name: Install Composer dependencies (highest) on PHP 8.0
if: matrix.dependencies == 'highest' && matrix.php-version == '8.0'
run: composer update --prefer-dist --no-progress --no-interaction --prefer-stable --ignore-platform-req=php

- name: Run Tests
if: matrix.php-version != '8.0'
run: make test

- name: Run Tests (PHP 8.0)
if: matrix.php-version == '8.0'
run: vendor/bin/phpunit --coverage-clover build/logs/clover.xml

- name: Send coverage to Codecov
uses: codecov/codecov-action@v1
with:
Expand Down

0 comments on commit aa76831

Please sign in to comment.