Re-generate static site #379
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Cypress e3e | |
on: | |
push | |
jobs: | |
e2e: | |
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 | |
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 minimal --existing-config -y | |
vendor/bin/drush pm:install fs_content default_content --yes | |
- name: Run PHP server | |
uses: kohlerdominik/docker-run-action@v1 | |
with: | |
image: bitnami/php-fpm:8.2 | |
shell: /bin/bash | |
workdir: /app | |
options: | | |
--name=php | |
--detach | |
volumes: | |
${{ github.workspace }}:/app | |
run: | | |
vendor/bin/drush --root=web runserver php:8888 | |
- name: Build cypress and run e2e tests | |
uses: kohlerdominik/docker-run-action@v1 | |
with: | |
image: cypress/base:latest | |
shell: /bin/bash | |
workdir: /app | |
volumes: | |
${{ github.workspace }}/cypress:/app | |
run: | | |
cd /app | |
npm ci | |
npx cypress install | |
npx cypress run --config baseUrl=http://php:8888 |