Skip to content

allow mariadb as the driverName but use the pdo_mysql driver for doctrine #58

allow mariadb as the driverName but use the pdo_mysql driver for doctrine

allow mariadb as the driverName but use the pdo_mysql driver for doctrine #58

Workflow file for this run

name: Build and test [MYSQL 8.0]
on:
pull_request:
branches:
- 'main'
types: [ opened, synchronize, reopened, ready_for_review ]
push:
branches:
- 'main'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
if: success()
- name: Setup PHP with coverage driver
uses: shivammathur/setup-php@v2
with:
php-version: '8.2'
coverage: pcov
- name: Setup
if: success()
run: |
php -v
composer install --no-interaction
touch coverage.xml
mv .env.mysql .env
sudo service mysql start
mysql -uroot -proot -e "CREATE DATABASE eloquentdocs;"
- name: PHPUnit tests with coverage
if: success()
run: |
composer test-coverage
- name: upload coverage to codecov.io
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: ./coverage.xml