Skip to content

Bump app version

Bump app version #521

Workflow file for this run

name: Testing with MariaDB
on: [push, pull_request]
jobs:
symfony:
name: Symfony (PHP ${{ matrix.php-versions }})
runs-on: ubuntu-latest
services:
mariadb:
image: mariadb:10.6.14
ports:
- 3306
env:
MYSQL_USER: mariadb
MYSQL_PASSWORD: mariadb
MYSQL_DATABASE: mariadb
MYSQL_ROOT_PASSWORD: mariadb
options: --health-cmd="mysqladmin ping" --health-interval=5s --health-timeout=2s --health-retries=3
strategy:
fail-fast: false
matrix:
php-versions: ['8.3']
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Verify MariaDB connection
env:
PORT: ${{ job.services.mariadb.ports[3306] }}
run: |
while ! mysqladmin ping -h"127.0.0.1" -P"$PORT" --silent; do
sleep 1
done
- name: Setup PHP, with composer and extensions
uses: shivammathur/setup-php@v2 #https://github.com/shivammathur/setup-php
with:
php-version: ${{ matrix.php-versions }}
extensions: mbstring, xml, ctype, gd, iconv, intl, pdo_sqlite
coverage: xdebug #optional
- name: Get composer cache directory
id: composercache
run: echo "::set-output name=dir::$(composer config cache-files-dir)"
- name: Cache composer dependencies
uses: actions/cache@v4
with:
path: ${{ steps.composercache.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: ${{ runner.os }}-composer-
- name: Install Composer dependencies
run: |
composer update symfony/flex --no-plugins --no-scripts
composer install --no-progress --prefer-dist --optimize-autoloader
- name: Run Migration
run: |
php bin/console app:install
env:
DATABASE_URL: mysql://mariadb:[email protected]:${{ job.services.mariadb.ports[3306] }}/mariadb?serverVersion=mariadb-10.6.14
- name: Run Tests
env:
PANTHER_NO_SANDBOX: "1"
DATABASE_URL: mysql://mariadb:[email protected]:${{ job.services.mariadb.ports[3306] }}/mariadb?serverVersion=mariadb-10.6.14
run: php bin/phpunit --coverage-text