Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

35 curl me #36

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/pr-mailhog-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
leia-test:
- examples/mailhog
lando-version:
- 3-dev-slim
- 3-slim
os:
- ubuntu-22.04
node-version:
Expand All @@ -37,7 +37,7 @@ jobs:
version: dev
sync: false
- name: Setup lando ${{ matrix.lando-version }}
uses: lando/setup-lando@v2
uses: lando/setup-lando@v3
with:
lando-version: ${{ matrix.lando-version }}
config: |
Expand Down
7 changes: 6 additions & 1 deletion examples/mailhog/.lando.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,16 @@ services:
type: mailhog
hogfrom:
- php
- nginx
php:
type: php
nginx:
type: nginx:1.25

# This is important because it lets lando know to test against the plugin in this repo
# DO NOT REMOVE THIS!
plugins:
"@lando/mailhog": ../..
"@lando/php": ./node_modules/@lando/php
"@lando/php": ../../node_modules/@lando/php
"@lando/nginx": ../../node_modules/@lando/nginx

3 changes: 3 additions & 0 deletions examples/mailhog/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,15 @@ Run the following commands to validate things are rolling as they should.
```bash
# Should have the mhsendmail binary
lando ssh -s php -c "ls -lsa /usr/local/bin | grep mhsendmail"
lando ssh -s nginx -c "ls -lsa /usr/local/bin | grep mhsendmail"

# Should have the MH_SENDMAIL_SMTP_ADDR set
lando ssh -s php -c "env | grep MH_SENDMAIL_SMTP_ADDR=sendmailhog:1025"
lando ssh -s nginx -c "env | grep MH_SENDMAIL_SMTP_ADDR=sendmailhog:1025"

# Should be serving the admin interface on port 80
lando ssh -s php -c "curl mailhog | grep MailHog"
lando ssh -s nginx -c "curl mailhog | grep MailHog"

# Should have mailhog set as the meUser
lando ssh -s mailhog -c "id | grep mailhog"
Expand Down
1 change: 1 addition & 0 deletions examples/mailhog/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
HELLO THERE!
102 changes: 102 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@
"devDependencies": {
"@babel/eslint-parser": "^7.16.0",
"@lando/leia": "^1.0.0-beta.3",
"@lando/nginx": "^1.1.0",
"@lando/php": "^1.3.0",
"@lando/vitepress-theme-default-plus": "^1.0.0-beta.41",
"chai": "^4.3.4",
"command-line-test": "^1.0.10",
Expand Down
Loading