-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (35 loc) · 1.1 KB
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: Tests
on:
pull_request:
push:
branches:
- main
jobs:
test:
name: Testing
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install PHP
uses: shivammathur/setup-php@v2
with:
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 -uroot -h127.0.0.1 -proot -e 'CREATE DATABASE IF NOT EXISTS db;'
sudo systemctl start apache2
echo "ServerName localhost" | sudo tee /etc/apache2/conf-available/fqdn.conf && sudo a2enconf fqdn
sudo systemctl status apache2
hostname -I
- name: Unit & Kernel Tests
run: vendor/bin/phpunit --testsuite unit,kernel
- name: Install Drupal
run: bash scripts/install-ci.sh
- name: Existing Site Tests
run: vendor/bin/phpunit --testsuite existing-site