Removed composer-normalize plugin #72
Workflow file for this run
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: CI | |
on: [push, pull_request] | |
env: | |
APP_ENV: dev | |
fail-fast: true | |
FORCE_COLOR: "true" | |
jobs: | |
all_in_one: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
php-versions: ['8.3'] | |
name: Build, QA and Tests on PHP ${{ matrix.php-versions }} | |
services: | |
database: | |
image: mariadb:11.5.2 | |
env: | |
MARIADB_DATABASE: pingcrm | |
MARIADB_USER: pingcrm | |
MARIADB_PASSWORD: pingcrm | |
MARIADB_ROOT_PASSWORD: pingcrm | |
ports: | |
- 3306:3306 | |
options: --health-cmd="healthcheck.sh --connect --innodb_initialized" --health-interval=10s --health-timeout=5s --health-retries=3 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ matrix.php-versions }} | |
coverage: none | |
tools: symfony | |
- name: Setup Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '20' | |
- name: Install dependencies | |
run: | | |
composer install --ansi --no-progress | |
npm ci | |
- name: Build assets | |
run: npm run build | |
- name: QA | |
run: | | |
sed -i "s#php-cs-fixer check#php-cs-fixer check --show-progress=none#" composer.json | |
sed -i "s#phpstan analyse#phpstan analyse --no-progress#" composer.json | |
sed -i "s#doctrine:schema:validate#doctrine:schema:validate --skip-sync#" composer.json | |
composer qa --ansi | |
- name: Tests | |
run: | | |
sed -i "s#@database#@127.0.0.1#" .env.test | |
composer test --ansi |