Skip to content

Commit

Permalink
Update GitHub workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Simon Bäse committed Dec 24, 2024
1 parent 3c83911 commit 16c9143
Showing 1 changed file with 6 additions and 12 deletions.
18 changes: 6 additions & 12 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 16c9143

Please sign in to comment.