Skip to content

Commit

Permalink
test fake smtp
Browse files Browse the repository at this point in the history
  • Loading branch information
Jaszkowic committed Jun 13, 2024
1 parent b2437ab commit 44725ed
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 89 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/smtp-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions

# TODO: adjust ci workflow to use new testing setup (vercel and supabase)
name: Node.js CI
env:
CI: "true"
NODE_ENV: "test"
on:
push:
branches: [master, dev, staging]
pull_request:
branches: [master, dev, staging]
# see https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/configuring-pull-request-merges/managing-a-merge-queue#triggering-merge-group-checks-with-github-actions
merge_group:

jobs:
test:
env:
SUPABASE_INTERNAL_IMAGE_REGISTRY: docker.io
SUPABASE_URL: http://localhost:54321
SUPABASE_ANON_KEY: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZS1kZW1vIiwicm9sZSI6ImFub24iLCJleHAiOjE5ODM4MTI5OTZ9.CRXP1A7WOeoJeXxjNni43kdQwgnWNReilDMblYTn_I0
SUPABASE_SERVICE_ROLE_KEY: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZS1kZW1vIiwicm9sZSI6InNlcnZpY2Vfcm9sZSIsImV4cCI6MTk4MzgxMjk5Nn0.EGIM96RAZx35lJzdJsyH-qQwv8Hdp7fsn3W0YpN81IU
SUPABASE_MAX_ROWS: 10000
ACCESS_CONTROL_ALLOW_ORIGIN: "*"
SMTP_HOST: "127.0.0.1"
SMTP_USER: ""
SMTP_PASSWORD: ""
SMTP_FROM: giessdenkiez@citylab-berlin.org
SMTP_PORT: 1025
SMTP_SECURE: false

runs-on: ubuntu-latest
environment: ci_test
if: "!contains(github.event.head_commit.message, 'skip ci')"
steps:
- name: Login to DockerHub
run: curl -O https://github.com/gessnerfl/fake-smtp-server/releases/download/2.2.1/fake-smtp-server-2.2.1.jar
run: java -jar fake-smtp-server-2.2.1.jar
89 changes: 0 additions & 89 deletions .github/workflows/tests.yml

This file was deleted.

0 comments on commit 44725ed

Please sign in to comment.