From 16c914388ea50a4e56cc5a85ed74d725597e1b6c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20B=C3=A4se?= Date: Wed, 25 Dec 2024 00:44:53 +0100 Subject: [PATCH] Update GitHub workflow --- .github/workflows/ci.yml | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6c69e2d4..7e93421b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -11,28 +11,22 @@ jobs: test: name: Testing runs-on: ubuntu-latest - services: - db: - image: mysql:8.0 - env: - MYSQL_ROOT_PASSWORD: root - MYSQL_USER: db - MYSQL_PASSWORD: db - MYSQL_DATABASE: db - ports: - - 3306:3306 - options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3 steps: - name: Checkout uses: actions/checkout@v4 - name: Install PHP uses: shivammathur/setup-php@v2 with: - coverage: xdebug + coverage: no php-version: 8.3 extensions: dom, curl, libxml, mbstring, zip, pdo, mysql, pdo_mysql, gd, apcu - name: Install Dependencies uses: ramsey/composer-install@v3 + - name: Setup Environment + run: | + sudo systemctl start mysql.service + mysql -e 'CREATE DATABASE db;' -u db -p db + sudo systemctl start apache2 - name: Unit & Kernel Tests run: vendor/bin/phpunit --testsuite unit,kernel - name: Install Drupal