diff --git a/.ddev/commands/host/recipe-install b/.ddev/commands/host/recipe-install new file mode 100755 index 0000000..21a0a5e --- /dev/null +++ b/.ddev/commands/host/recipe-install @@ -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 \ No newline at end of file diff --git a/.github/workflows/recipe-test.yaml b/.github/workflows/recipe-test.yaml new file mode 100644 index 0000000..27a59ec --- /dev/null +++ b/.github/workflows/recipe-test.yaml @@ -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 \ No newline at end of file