Skip to content

rustmailapp/rustmail-action

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RustMail Action

Start a RustMail SMTP catcher and assert on captured emails in CI.

Usage

# 1. Start the server
- uses: rustmailapp/rustmail-action@v1

# 2. Run your tests (they send email to localhost:1025)
- run: npm test

# 3. Assert on captured emails
- uses: rustmailapp/rustmail-action@v1
  with:
    mode: assert
    assert-count: 1
    assert-subject: "Welcome"

Inputs

Start Mode (default)

Input Default Description
smtp-port 1025 SMTP port
http-port 8025 HTTP/API port
version latest RustMail release version

Assert Mode

Input Default Description
assert-count 1 Minimum matching emails
assert-subject Filter by subject
assert-sender Filter by sender
assert-recipient Filter by recipient

Outputs

Output Description
http-port HTTP port the server is listening on
smtp-port SMTP port the server is listening on

Platforms

Linux (x86_64, arm64) and macOS (x86_64, arm64).

License

MIT or Apache-2.0

About

GitHub Action to start RustMail and assert on captured emails in CI

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Packages

 
 
 

Contributors