diff --git a/.github/workflows/php.yml b/.github/workflows/php.yml index cc781f0ec4..c46b3e798a 100644 --- a/.github/workflows/php.yml +++ b/.github/workflows/php.yml @@ -5,7 +5,7 @@ on: [push, pull_request] jobs: build: name: PHP ${{ matrix.php-versions }} Test on ${{ matrix.operating-system }} - runs-on: ubuntu-20.04 + runs-on: ubuntu-18.04 strategy: fail-fast: false @@ -13,16 +13,21 @@ jobs: operating-system: [ubuntu-latest] php-versions: ['7.2', '7.3', '7.4'] -# services: -# mysql: -# image: mysql:5.7 -# env: -# MYSQL_ALLOW_EMPTY_PASSWORD: false -# MYSQL_ROOT_PASSWORD: chamilo -# MYSQL_DATABASE: chamilo -# ports: -# - 3306/tcp -# options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3 + services: + mysql: + image: mysql:latest + env: + MYSQL_ALLOW_EMPTY_PASSWORD: false + MYSQL_ROOT_PASSWORD: root + MYSQL_DATABASE: chamilo + MYSQL_AUTHENTICATION_PLUGIN: mysql_native_password + ports: + - 3306/tcp + options: >- + --health-cmd="mysqladmin ping" + --health-interval=10s + --health-timeout=5s + --health-retries=3 steps: - name: Checkout uses: actions/checkout@v2