Merge pull request #3 from netlogix/bugfix/fix-flow-serialization #20
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
name: unittests | |
on: [push, pull_request] | |
jobs: | |
unittests: | |
name: '[PHP ${{ matrix.php-versions }} | Flow ${{ matrix.flow-versions }}] Unit Tests' | |
runs-on: ubuntu-latest | |
# services: | |
# mariadb: | |
# image: mariadb:10.2 | |
# env: | |
# MYSQL_USER: neos | |
# MYSQL_PASSWORD: neos | |
# MYSQL_DATABASE: flow_functional_testing | |
# MYSQL_ROOT_PASSWORD: neos | |
# ports: | |
# - 3306/tcp | |
# options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3 | |
strategy: | |
fail-fast: false | |
matrix: | |
php-versions: [7.2, 7.3, 7.4] | |
flow-versions: [5.3, 6.3] | |
env: | |
FLOW_CONTEXT: Testing/Unit | |
FLOW_DIST_FOLDER: flow-base-distribution | |
steps: | |
- uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ matrix.php-versions }} | |
extensions: mbstring, xml, json, zlib, iconv, intl, pdo_sqlite, mysql | |
ini-values: opcache.fast_shutdown=0 | |
- name: Cache composer dependencies | |
uses: actions/cache@v1 | |
with: | |
path: ~/.composer/cache | |
key: php-${{ matrix.php-versions }}-flow-${{ matrix.flow-versions }}-composer-${{ hashFiles('composer.json') }} | |
restore-keys: | | |
php-${{ matrix.php-versions }}-flow-${{ matrix.flow-versions }}-composer- | |
php-${{ matrix.php-versions }}-flow- | |
- name: Install composer dependencies | |
run: composer create-project neos/flow-base-distribution ${{ env.FLOW_DIST_FOLDER }} --prefer-dist --no-progress "^${{ matrix.flow-versions }}" | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
with: | |
path: ${{ env.FLOW_DIST_FOLDER }}/DistributionPackages/Netlogix.Migrations.JobQueue | |
- name: Install netlogix/migrations-jobqueue | |
run: composer require netlogix/migrations-jobqueue:@dev | |
working-directory: ${{ env.FLOW_DIST_FOLDER }} | |
- name: Run tests | |
run: bin/phpunit -c DistributionPackages/Netlogix.Migrations.JobQueue/phpunit.xml.dist --bootstrap "Build/BuildEssentials/PhpUnit/UnitTestBootstrap.php" | |
working-directory: ${{ env.FLOW_DIST_FOLDER }} |