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
5 changed files
with
112 additions
and
13 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
on: | ||
pull_request: | ||
paths: | ||
- 'src/**' | ||
- 'tests/**' | ||
- '.github/workflows/**' | ||
|
||
push: | ||
branches: | ||
- develop | ||
- master | ||
|
||
name: Test | ||
|
||
env: | ||
SYMFONY_DEPRECATIONS_HELPER: max[self]=0 | ||
PHPUNIT_VERSION: 8 | ||
PHP_EXTENSIONS: "json" # just for testing now | ||
PHP_INI_VALUES: "memory_limit=3072M" | ||
|
||
jobs: | ||
test: | ||
name: PHP ${{ matrix.php-version }} + --prefer-lowest | ||
|
||
runs-on: ubuntu-16.04 # xenial | ||
|
||
strategy: | ||
matrix: | ||
php-version: | ||
- "7.2" | ||
- "7.3" | ||
- "7.4" | ||
|
||
steps: | ||
- name: "Checkout" | ||
uses: actions/checkout@v2.0.0 | ||
|
||
- name: "Install PHP with extensions" | ||
uses: "shivammathur/setup-php@v1" | ||
with: | ||
coverage: "none" | ||
extensions: "${{ env.PHP_EXTENSIONS }}" | ||
php-version: "${{ matrix.php-version }}" | ||
ini-values: "${{ env.PHP_INI_VALUES }}" | ||
tools: phpunit:8.5.2 | ||
|
||
- run: composer update --prefer-dist --no-interaction --prefer-stable --no-progress --prefer-lowest | ||
|
||
- name: "Run tests via PHPUnit" | ||
run: phpunit -c phpunit.xml.dist |
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,60 @@ | ||
on: | ||
pull_request: | ||
paths: | ||
- 'src/**' | ||
- 'tests/**' | ||
- '.github/workflows/**' | ||
|
||
push: | ||
branches: | ||
- develop | ||
- master | ||
|
||
name: Test | ||
|
||
env: | ||
SYMFONY_DEPRECATIONS_HELPER: max[self]=0 | ||
PHPUNIT_VERSION: 8 | ||
PHP_EXTENSIONS: "json" # just for testing now | ||
PHP_INI_VALUES: "memory_limit=3072M" | ||
|
||
jobs: | ||
test: | ||
name: PHP ${{ matrix.php-version }} + ${{ matrix.variant }} | ||
|
||
runs-on: ubuntu-16.04 # xenial | ||
|
||
strategy: | ||
matrix: | ||
php-version: | ||
- "7.3" | ||
variant: | ||
- "SYMFONY=4.4.*" | ||
- "SYMFONY='dev-master as 4.4.x-dev'" | ||
- "SONATA_CORE=3.*" | ||
- "SONATA_CORE='dev-master as 3.x-dev'" | ||
- "SONATA_BLOCK=3.*" | ||
- "SONATA_BLOCK='dev-master as 3.x-dev'" | ||
- "SYMFONY_DEPRECATIONS_HELPER=0" | ||
|
||
steps: | ||
- name: "Checkout" | ||
uses: actions/checkout@v2.0.0 | ||
|
||
- name: "Install PHP with extensions" | ||
uses: "shivammathur/setup-php@v1" | ||
with: | ||
coverage: "none" | ||
extensions: "${{ env.PHP_EXTENSIONS }}" | ||
php-version: "${{ matrix.php-version }}" | ||
ini-values: "${{ env.PHP_INI_VALUES }}" | ||
tools: phpunit:8.5.2 | ||
|
||
- run: composer update --prefer-dist --no-interaction --prefer-stable --no-progress | ||
|
||
- run: export ${{ matrix.variant }} | ||
|
||
- run: sh .travis/before_install_test.sh | ||
|
||
- name: "Run tests via PHPUnit" | ||
run: phpunit -c phpunit.xml.dist |
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 was deleted.
Oops, something went wrong.