Skip to content
Draft
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
8 changes: 6 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,15 @@ jobs:

steps:
- uses: actions/checkout@v3
- name: Set up JDK 11
uses: actions/setup-java@v3
- name: Setup sbt
uses: sbt/setup-sbt@v1

- name: Setup Java (temurin@11)
uses: actions/setup-java@v4
with:
java-version: '11'
distribution: 'temurin'
cache: 'sbt'

- name: Run tests
run: sbt ci
2 changes: 1 addition & 1 deletion courier/src/main/scala/sessions.scala
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ object Session {
def apply() =
mailer.copy(_session = MailSession.getInstance(
new Properties(System.getProperties) {
_debug.map(d => put("mail.smtp.debug", d.toString))
_debug.map(d => put("mail.debug", d.toString))
_auth.map(a => put("mail.smtp.auth", a.toString))
// enable ESMTP
_startTls.map(s => put("mail.smtp.starttls.enable", s.toString))
Expand Down
4 changes: 2 additions & 2 deletions integration-tests/src/test/scala/mailspec.scala
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ import scala.concurrent.duration._

class MailSpec extends munit.FunSuite {
// create a gmail app password https://myaccount.google.com/apppasswords
test("the mailer should send an email") {
assume(sys.env("CI").isEmpty(), "This test is meant to be ran locally.")
test("the mailer should send an email".ignore) { // remove .ignore to run the test locally
val email = sys.env("IT_EMAIL")
val password = sys.env("IT_PASSWORD")
val mailer = Mailer("smtp.gmail.com", 587)
.debug(true)
.auth(true)
.as(email, password)
.startTls(true)()
Expand Down