Skip to content

Commit 14ead8c

Browse files
committed
chore: add maildev
1 parent f0184e8 commit 14ead8c

File tree

7 files changed

+103
-2
lines changed

7 files changed

+103
-2
lines changed

.github/workflows/end-to-end.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,9 @@ jobs:
109109
- 5432:5432
110110
steps:
111111
- uses: actions/checkout@v4
112+
113+
- run: docker compose up --build --detach maildev
114+
112115
- uses: actions/setup-node@v4
113116
with:
114117
cache: "npm"

.github/workflows/fixtures.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
runs-on: ubuntu-22.04
2525
services:
2626
postgres:
27-
image: postgres:14.3
27+
image: postgres:12.12
2828
env:
2929
POSTGRES_USER: ${{ env.PGUSER }}
3030
POSTGRES_PASSWORD: ${{ env.PGPASSWORD }}
@@ -37,7 +37,7 @@ jobs:
3737
with:
3838
cache: "npm"
3939
node-version-file: package.json
40-
- run: npm ci --omit=dev # omit dev dependencies to simulate deployed environment
40+
- run: npm ci --omit=dev
4141
- run: npm run migrate up
4242
- run: npm run fixtures:load-ci -- scripts/fixtures.sql
4343
- run: npm run update-organization-info -- 500

cypress.config.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,10 @@ export default defineConfig({
2323
return config;
2424
},
2525
},
26+
env: {
27+
MAILDEV_PROTOCOL: "http",
28+
MAILDEV_HOST: "localhost",
29+
MAILDEV_SMTP_PORT: "1025",
30+
MAILDEV_API_PORT: "1080",
31+
},
2632
});

cypress/support/e2e.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
// ***********************************************************
1515

1616
import "cypress-axe";
17+
import "cypress-maildev";
1718
import "cypress-mailslurp";
1819

1920
import "./commands";

docker-compose.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,5 +67,9 @@ services:
6767
STYLESHEET_URL:
6868
network_mode: "host"
6969

70+
maildev:
71+
image: soulteary/maildev
72+
network_mode: "host"
73+
7074
volumes:
7175
db-data:

package-lock.json

Lines changed: 86 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,7 @@
113113
"csv": "^6.3.9",
114114
"cypress": "^13.14.2",
115115
"cypress-axe": "^1.5.0",
116+
"cypress-maildev": "^1.3.2",
116117
"cypress-mailslurp": "^1.10.0",
117118
"mocha": "^10.7.3",
118119
"nock": "^13.5.4",

0 commit comments

Comments
 (0)