Skip to content

DVRescue: Add binaries for Ubuntu 23.10 and 24.04 #450

DVRescue: Add binaries for Ubuntu 23.10 and 24.04

DVRescue: Add binaries for Ubuntu 23.10 and 24.04 #450

name: Checks
on: [push, pull_request]
jobs:
Check:
runs-on: ubuntu-22.04
services:
mysql:
image: mysql:5.7
env:
MYSQL_ALLOW_EMPTY_PASSWORD: yes
MYSQL_DATABASE: ci
ports:
- 3306:3306
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 1
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 7.2
extensions: gd
ini-values: memory_limit=-1
tools: composer:v1
coverage: none
- name: Get composer cache directory
id: composer-cache
run: echo "::set-output name=dir::$(composer config cache-files-dir)"
- name: Cache dependencies
uses: actions/cache@v2
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }}
restore-keys: ${{ runner.os }}-composer-
- name: Prepare
run: |
cp app/config/parameters.yml.ci app/config/parameters.yml
- name: Install dependencies
run: |
composer require --no-progress --dev friendsofphp/php-cs-fixer:2.13.* phpmd/phpmd:2.7.* --prefer-dist --no-suggest --ansi
- name: Configure
run: |
php bin/console doctrine:database:create --env=test --if-not-exists
php bin/console doctrine:migrations:migrate --no-interaction
php bin/console doctrine:fixtures:load --env=test --no-interaction
php bin/console mediaarea:user:donor test@mediaarea.net 1
php bin/console fos:user:create beta beta@mediaarea.net betaCI
php bin/console fos:user:promote beta ROLE_BETA
php bin/console mediaarea:user:donor beta@mediaarea.net 30
- name: Check
run: |
vendor/bin/php-cs-fixer --dry-run --stop-on-violation --using-cache=no fix src/
vendor/bin/phpmd src/ text phpmd.xml
php bin/console lint:twig app/ src/
# php bin/console lint:xliff src/
php bin/console lint:xliff app/
php bin/console lint:yaml src/
php bin/console lint:yaml app/