Skip to content

Initial commit

Initial commit #1

Workflow file for this run

name: Tests
on: [push, pull_request]
jobs:
build-and-test:
runs-on: ubuntu-22.04
steps:
- name: Checkout 🛎️
uses: actions/checkout@v2
with:
persist-credentials: false
- name: Start docker 🔧
run: |
docker-compose -f docker-compose.yml -f .github/docker-compose.yml up -d
- name: Cache multiple paths
uses: actions/cache@v2
with:
path: |
**/vendor
key: ${{ runner.os }}-${{ hashFiles('*.lock') }}
- name: Install the dependencies 🔧
run: |
docker-compose exec -T application composer install --prefer-dist --no-interaction --no-progress
- name: Execute the tests 🔧
run: |
docker-compose exec -T application php -d extension=pcov.so ./bin/phpunit --configuration phpunit.xml.dist --colors=never --coverage-text --log-junit reports/junit.xml --coverage-html reports/coverage --coverage-clover build/logs/clover.xml
- name: PHPInsights 🔧
run: |
docker-compose exec -T application ./bin/phpinsights
- name: PHPStan 🔧
run: |
docker-compose exec -T application ./bin/phpstan