Skip to content

Move rector to dev dependencies #152

Move rector to dev dependencies

Move rector to dev dependencies #152

Workflow file for this run

name: PHP
on:
pull_request:
push:
branches:
- master
env:
DATABASE_URL: mysql://[email protected]:33306/su_news_test?serverVersion=5.7
jobs:
tests:
name: Test Application
runs-on: ubuntu-latest
services:
mysql:
image: mysql:5.7
env:
MYSQL_ALLOW_EMPTY_PASSWORD: true
ports:
- 33306:3306
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3
steps:
- name: Checkout project
uses: actions/checkout@v1
- name: Validate composer.json and composer.lock
run: composer validate
- name: Get Composer Cache Directory
id: composer-cache
run: |
echo "::set-output name=dir::$(composer config cache-files-dir)"
- uses: actions/cache@v1
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }}
restore-keys: |
${{ runner.os }}-composer-
- name: Install dependencies
run: composer install --prefer-dist --no-progress --no-suggest
- name: bootstrap test environment
run: composer bootstrap-test-environment
- name: Run unit tests
run: composer phpunit -- Tests/Unit --coverage-php var/coverage.php --coverage-html coverage-report --log-junit var/junit.xml