From 3a7dd4051cf623f80aa647ee613644a524eed93f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20DOUIN?= Date: Mon, 3 May 2021 17:54:11 +0200 Subject: [PATCH] add greenmail server to tests github workflow --- .github/workflows/tests.yaml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index e8847bf..d6a191d 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -10,16 +10,15 @@ jobs: tests: runs-on: ubuntu-latest steps: + - name: Start GreenMail testing server + run: | + docker run --rm -d -e GREENMAIL_OPTS='-Dgreenmail.setup.test.all -Dgreenmail.hostname=0.0.0.0 -Dgreenmail.auth.disabled -Dgreenmail.verbose' -p 3025:3025 -p 3110:3110 -p 3143:3143 -p 3465:3465 -p 3993:3993 -p 3995:3995 greenmail/standalone:1.6.2 - name: Checkout code uses: actions/checkout@v2 - name: Install rust uses: actions-rs/toolchain@v1 with: toolchain: stable - - name: Check project - uses: actions-rs/cargo@v1 - with: - command: check - name: Run tests uses: actions-rs/cargo@v1 with: