Skip to content

Commit

Permalink
chore: add maildev
Browse files Browse the repository at this point in the history
  • Loading branch information
douglasduteil committed Oct 16, 2024
1 parent f0184e8 commit 14ead8c
Show file tree
Hide file tree
Showing 7 changed files with 103 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/end-to-end.yml
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,9 @@ jobs:
- 5432:5432
steps:
- uses: actions/checkout@v4

- run: docker compose up --build --detach maildev

- uses: actions/setup-node@v4
with:
cache: "npm"
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/fixtures.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
runs-on: ubuntu-22.04
services:
postgres:
image: postgres:14.3
image: postgres:12.12
env:
POSTGRES_USER: ${{ env.PGUSER }}
POSTGRES_PASSWORD: ${{ env.PGPASSWORD }}
Expand All @@ -37,7 +37,7 @@ jobs:
with:
cache: "npm"
node-version-file: package.json
- run: npm ci --omit=dev # omit dev dependencies to simulate deployed environment
- run: npm ci --omit=dev
- run: npm run migrate up
- run: npm run fixtures:load-ci -- scripts/fixtures.sql
- run: npm run update-organization-info -- 500
6 changes: 6 additions & 0 deletions cypress.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,10 @@ export default defineConfig({
return config;
},
},
env: {
MAILDEV_PROTOCOL: "http",
MAILDEV_HOST: "localhost",
MAILDEV_SMTP_PORT: "1025",
MAILDEV_API_PORT: "1080",
},
});
1 change: 1 addition & 0 deletions cypress/support/e2e.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
// ***********************************************************

import "cypress-axe";
import "cypress-maildev";
import "cypress-mailslurp";

import "./commands";
4 changes: 4 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,5 +67,9 @@ services:
STYLESHEET_URL:
network_mode: "host"

maildev:
image: soulteary/maildev
network_mode: "host"

volumes:
db-data:
86 changes: 86 additions & 0 deletions package-lock.json

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

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@
"csv": "^6.3.9",
"cypress": "^13.14.2",
"cypress-axe": "^1.5.0",
"cypress-maildev": "^1.3.2",
"cypress-mailslurp": "^1.10.0",
"mocha": "^10.7.3",
"nock": "^13.5.4",
Expand Down

0 comments on commit 14ead8c

Please sign in to comment.