Skip to content

Commit

Permalink
???
Browse files Browse the repository at this point in the history
  • Loading branch information
lowercasename committed Oct 7, 2023
1 parent 606e731 commit 2408678
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,12 +60,10 @@ jobs:
- name: Start MongoDB
uses: supercharge/[email protected]

- name: Start server
run: CYPRESS=true pnpm run start

- name: Cypress run
uses: cypress-io/github-action@v6
with:
start: pnpm start
browser: chrome

- name: Upload screenshots
Expand Down
7 changes: 4 additions & 3 deletions src/lib/email.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,10 @@ type EmailTemplate =
| "unattendEvent";

export const initEmailService = async (): Promise<boolean> => {
console.log(process.env);
if (process.env.CYPRESS) {
console.log("Running in Cypress, not initializing email service.");
if (process.env.CYPRESS || process.env.CI) {
console.log(
"Running in Cypress or CI, not initializing email service.",
);
return false;
}
switch (config.general.mail_service) {
Expand Down

0 comments on commit 2408678

Please sign in to comment.