-
Notifications
You must be signed in to change notification settings - Fork 1
50 lines (47 loc) · 1.34 KB
/
recipe-test.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
42
43
44
45
46
47
48
49
50
name: Recipe Test
on:
push
jobs:
test:
runs-on: ubuntu-latest
services:
mariadb:
image: mariadb:latest
env:
MARIADB_ROOT_PASSWORD: root_password
MARIADB_DATABASE: test_db
MARIADB_USER: test_user
MARIADB_PASSWORD: test_password
options: >-
--health-cmd="healthcheck.sh --connect --innodb_initialized"
--health-interval=10s
--health-timeout=5s
--health-retries=3
--name mariadb
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Composer install
uses: kohlerdominik/docker-run-action@v1
with:
image: composer
shell: /bin/bash
workdir: /app
volumes:
${{ github.workspace }}:/app
run: |
composer install --ignore-platform-reqs
cp .github/workflows/assets/local.settings.php ./web/sites/default/local.settings.php
- name: Drupal install from recipe
uses: kohlerdominik/docker-run-action@v1
with:
image: bitnami/php-fpm:8.2
shell: /bin/bash
workdir: /app
volumes:
${{ github.workspace }}:/app
run: |
vendor/bin/drush si recipes/frees-au/ce
vendor/bin/drush status