Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
15 changed files
with
311 additions
and
138 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,95 @@ | ||
# DO NOT EDIT THIS FILE! | ||
# | ||
# It's auto-generated by sonata-project/dev-kit package. | ||
|
||
name: Test | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
- 3.x | ||
pull_request: | ||
|
||
jobs: | ||
test: | ||
name: PHP ${{ matrix.php-version }} + ${{ matrix.dependencies }} + ${{ matrix.variant }} | ||
|
||
runs-on: ubuntu-latest | ||
|
||
continue-on-error: ${{ matrix.allowed_to_fail }} | ||
|
||
strategy: | ||
matrix: | ||
php-version: | ||
- '7.3' | ||
- '7.4' | ||
dependencies: [highest] | ||
allowed_to_fail: [false] | ||
variant: [normal] | ||
include: | ||
- php-version: '7.3' | ||
dependencies: lowest | ||
allowed_to_fail: false | ||
variant: normal | ||
- php-version: '8.0' | ||
dependencies: highest | ||
allowed_to_fail: true | ||
variant: normal | ||
- php-version: '7.3' | ||
dependencies: highest | ||
allowed_to_fail: false | ||
variant: 'symfony/symfony:"4.4.*"' | ||
- php-version: '7.3' | ||
dependencies: highest | ||
allowed_to_fail: false | ||
variant: 'sonata-project/block-bundle:"4.*"' | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
||
- name: Install PHP with extensions | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: ${{ matrix.php-version }} | ||
coverage: pcov | ||
tools: composer:v2 | ||
|
||
- name: Add PHPUnit matcher | ||
run: echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json" | ||
|
||
- name: Set Composer cache directory | ||
id: composer-cache | ||
run: echo "::set-output name=dir::$(composer config cache-files-dir)" | ||
|
||
- name: Cache Composer | ||
uses: actions/cache@v2 | ||
with: | ||
path: ${{ steps.composer-cache.outputs.dir }} | ||
key: ${{ runner.os }}-${{ matrix.php-version }}-composer-${{ matrix.dependencies }}-${{ matrix.variant }} | ||
restore-keys: ${{ runner.os }}-${{ matrix.php-version }}-composer- | ||
|
||
- name: Install variant | ||
if: matrix.variant != 'normal' | ||
run: composer require ${{ matrix.variant }} --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' | ||
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 | ||
run: make test | ||
|
||
- name: Send coverage to Codecov | ||
uses: codecov/codecov-action@v1 | ||
with: | ||
file: build/logs/clover.xml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.