-
-
Notifications
You must be signed in to change notification settings - Fork 66
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* pr-631: [Core,Jobs] failed tests [Core,Jobs] fixed failed jobs pagination filter, ref #628 [Core,Applications] fixed failed application attachment upload, ref #629 [Organization] fixed OrganizationImage::metadata default value to be null. integrated phpunit into github actions [Docker] removed --small-files option for mongodb server [Core] added ability to load additional module during development, ref #613 [Core] fixed mail service path options for FileTransport [Applications] fixed deprecated php each function [Core] fixed RatingFieldset getter properties, ref #626 [Core] fixed tz_date data type conversion, ref #627
- Loading branch information
Showing
18 changed files
with
161 additions
and
49 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,89 @@ | ||
name: CI | ||
|
||
on: | ||
push: | ||
pull_request: | ||
|
||
env: | ||
COMPOSER_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
COVERAGE: '0' | ||
APPLICATION_ENV: 'development' | ||
TIMEZONE: Europe/Berlin | ||
|
||
jobs: | ||
phpunit: | ||
name: PHPUnit Test | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 20 | ||
strategy: | ||
matrix: | ||
php: | ||
- '7.4' | ||
fail-fast: false | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: Setup PHP | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: ${{ matrix.php }} | ||
tools: pecl, composer | ||
extensions: intl, bcmath, curl, openssl, mbstring, mongodb, solr | ||
coverage: pcov | ||
ini-values: memory_limit=-1 | ||
- name: Start MongoDB | ||
uses: supercharge/mongodb-github-action@1.3.0 | ||
with: | ||
mongodb-version: 4.4 | ||
- name: Copy CI Configuration | ||
run: | | ||
cp etc/travis/autoload/*.* config/autoload | ||
- name: Get composer cache directory | ||
id: composercache | ||
run: echo "::set-output name=dir::$(composer config cache-files-dir)" | ||
- name: Cache dependencies | ||
uses: actions/cache@v2 | ||
with: | ||
path: ${{ steps.composercache.outputs.dir }} | ||
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }} | ||
restore-keys: ${{ runner.os }}-composer- | ||
- name: Set Composer platform config | ||
if: (startsWith(matrix.php, '8.0')) | ||
run: | | ||
composer config platform.php 7.4.99 | ||
- name: Update project dependencies | ||
run: composer update --no-interaction --no-progress --ansi | ||
- name: Run PHPUnit tests | ||
run: | | ||
mkdir -p build/logs/phpunit | ||
if [ "$COVERAGE" = '1' ]; then | ||
vendor/bin/phpunit --coverage-clover build/logs/phpunit/clover.xml --log-junit build/logs/phpunit/junit.xml | ||
else | ||
vendor/bin/phpunit --log-junit build/logs/phpunit/junit.xml | ||
fi | ||
- name: Upload test artifacts | ||
if: always() | ||
uses: actions/upload-artifact@v1 | ||
with: | ||
name: phpunit-logs-php${{ matrix.php }} | ||
path: build/logs/phpunit | ||
continue-on-error: true | ||
- name: Upload coverage results to Codecov | ||
if: matrix.coverage | ||
uses: codecov/codecov-action@v1 | ||
with: | ||
name: phpunit-php${{ matrix.php }} | ||
flags: phpunit | ||
fail_ci_if_error: true | ||
continue-on-error: true | ||
- name: Upload coverage results to Coveralls | ||
if: matrix.coverage | ||
env: | ||
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
run: | | ||
composer global require --prefer-dist --no-interaction --no-progress --ansi cedx/coveralls | ||
export PATH="$PATH:$HOME/.composer/vendor/bin" | ||
coveralls build/logs/phpunit/clover.xml | ||
wget https://scrutinizer-ci.com/ocular.phar | ||
travis_retry php ocular.phar code-coverage:upload --format=php-clover build/logs/clover.xml | ||
continue-on-error: true |
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
Empty file.
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
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
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
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