-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (35 loc) · 1.07 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
39
40
41
on: [push]
name: CI
jobs:
tests:
runs-on: ubuntu-latest
container:
image: ghcr.io/city-of-helsinki/drupal-php-docker:8.2-alpine
services:
db:
image: mariadb
env:
MYSQL_USER: drupal
MYSQL_PASSWORD: drupal
MYSQL_DATABASE: drupal
MYSQL_ROOT_PASSWORD: drupal
ports:
- 3306:3306
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 1
- name: Build project
run: composer install --no-interaction
- name: Scan security updates
run: composer audit
- name: Install Drupal
run: |
php -d sendmail_path=$(which true); vendor/bin/drush --yes -v site-install --db-url="$SIMPLETEST_DB"
vendor/bin/drush en helfi_platform_config
- name: Make sure Drupal is installed properly
run: |
vendor/bin/drush runserver $SIMPLETEST_BASE_URL &
sleep 5
# Make sure Drupal is installed
curl -s -o /dev/null -I -w "%{http_code}" $SIMPLETEST_BASE_URL/user/login | grep -q 200