Skip to content

Display in Profile #842

Display in Profile

Display in Profile #842

Workflow file for this run

name: Symfony 3.4 Tests
on: [push]
jobs:
symfony:
name: Symfony 3.4 (PHP ${{ matrix.php-versions }})
# https://hub.docker.com/_/ubuntu/
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
php-versions: ['7.4']
steps:
# https://github.com/actions/checkout (official)
- name: Checkout
uses: actions/checkout@v2
# https://github.com/shivammathur/setup-php (community)
- name: Setup PHP, extensions and composer with shivammathur/setup-php
uses: shivammathur/setup-php@verbose
with:
php-version: ${{ matrix.php-versions }}
tools: composer:2.2.17
extensions: mbstring, xml, ctype, iconv, intl, pdo_sqlite, dom, filter, gd, iconv, json, mbstring, pdo
# Composer
- name: Get composer cache directory
id: composer-cache
run: echo "::set-output name=dir::$(composer config cache-files-dir)"
# https://help.github.com/en/actions/configuring-and-managing-workflows/caching-dependencies-to-speed-up-workflows
- name: Cache composer dependencies
uses: actions/cache@v1
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: ${{ runner.os }}-composer-
- name: Install Composer dependencies
run: composer install --no-progress --prefer-dist --optimize-autoloader
# PHPStan finds bugs in your code without writing tests
# https://github.com/phpstan/phpstan
- name: Run PHPStan code scan
run: vendor/bin/phpstan analyse src
# Tests
- name: Run unit and functional tests
run: |
php ./vendor/bin/phpunit