Skip to content

Commit

Permalink
Setup install recipe command.
Browse files Browse the repository at this point in the history
  • Loading branch information
tannguyen04 committed Jul 12, 2024
1 parent 2b63aba commit c460452
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .ddev/commands/host/recipe-install
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/bin/bash

## Description: Installs CE recipe and opens it in a browser.

ddev delete -O -y
chmod -R 777 web/sites/default
rm web/sites/default/settings.php
rm -rf web/sites/default/files
rm -rf vendor
ddev start
ddev composer install
cd web && php -d memory_limit=512M core/scripts/drupal install recipes/contrib/frees-auce-recipes/ce
ddev drush uli
34 changes: 34 additions & 0 deletions .github/workflows/recipe-test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Recipe Test
on:
push
jobs:
test:
runs-on: ubuntu-latest

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
- name: Recipe install
uses: kohlerdominik/docker-run-action@v1
with:
image: bitnami/php-fpm:8.2
shell: /bin/bash
workdir: /app
volumes:
${{ github.workspace }}:/app
run: |
cd web && php -d memory_limit=512M core/scripts/drupal install recipes/contrib/frees-auce-recipes/ce

0 comments on commit c460452

Please sign in to comment.