Last active
August 17, 2020 03:12
-
-
Save leosuncin/65bcb177ad6629f496900d4763a84220 to your computer and use it in GitHub Desktop.
Accesible version of this tweet https://twitter.com/jl_suncin/status/1295195774117183489
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: E2E test | |
on: [push] | |
jobs: | |
e2e-test: | |
runs-on: ubuntu-latest | |
services: | |
maildev: | |
image: maildev/maildev | |
env: | |
MAILDEV_INCOMING_USER: [email protected] | |
MAILDEV_INCOMING_PASS: He7CdB3XBOees | |
options: --health-cmd "wget -q -O- http://localhost/healthz || exit 1" --health-interval 10s --health-timeout 5s --health-retries 5 # Use double quotes instead of single quote, or the command will be executed by GitHub Action | |
ports: | |
- 1025:25 | |
- 1080:80 | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: bahmutov/npm-install@v1 | |
- name: Run E2E tests | |
run: | | |
npm run test:e2e | |
env: | |
CI: 'true' | |
SMTP_SERVER: localhost | |
SMTP_PORT: ${{ job.services.maildev.ports[25] }} # Use port exposed by maildev/maildev instead of local port (1025) | |
SMTP_LOGIN: [email protected] | |
SMTP_PASSWORD: He7CdB3XBOees | |
SMTP_SECURE: 'false' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Short version of https://github.com/leosuncin/nest-auth-example/actions/runs/211427186/workflow