No description, website, or topics provided.
Clone or download

README.md

sfgov

CircleCI Dashboard sfgov Dev Site sfgov

Set up Lando for local development

  1. Prerequisites
  1. Init Lando with Github
    mkdir sfgov && cd sfgov && lando init github --recipe=pantheon
  2. composer install
  3. lando start
  4. Get latest from Pantheon dev environment lando pull
    • most of the time, code will not need to be pulled from pantheon, so run lando pull --code=none --database=dev --files=dev to skip the prompts
  5. (optional) Turn off caching. Turn on debug. (https://www.drupal.org/node/2598914)
    Note: Run lando drush cr instead of drush cr in step 7 of linked article.

Pull Request Workflow

(https://pantheon.io/docs/guides/build-tools/new-pr/) (https://gist.github.com/Chaser324/ce0505fbed06b947d962)
(https://www.atlassian.com/git/tutorials/making-a-pull-request)
TLDR version:

  1. Create a branch and make changes. Push branch.
  2. Open a pull request to merge from branch to master.
  3. The team reviews, discusses, and makes change requests to the change. This includes the PM reviewing the Circle CI review app BEFORE it is merged into master.
  4. Change is approved and merged
  5. Delete branch

Adding a contrib module

  1. Create a new branch git checkout -b new_branch
  2. Install module with composer composer require drupal/paragraphs
  3. Update the lock file hash composer update --lock
  4. Enable the module lando drush -y en paragraphs
  5. Export config lando drush -y cex
  6. Check in modified composer and config files git add composer.* config/*
  7. Commit and push changes git commit -m 'installed paragraphs' && git push
  8. Wait for CircleCI to build and deploy to a multidev. CircleCI will add comment to the checkin on GitHub with link to the created MultiDev.
  9. Create Pull Request and merge to master
  10. Switch away from branch and delete branch git checkout master && git push origin --delete new_branch && git branch -d new_branch

Local Behat Tests

For additonal context, refer to config in .lando.yml.

$ lando behat --config=/app/tests/behat-pantheon.yml --tags sfgov