Skip to content

feat: tests for contact request function #1

feat: tests for contact request function

feat: tests for contact request function #1

Workflow file for this run

# 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

Check failure on line 39 in .github/workflows/smtp-test.yml

View workflow run for this annotation

GitHub Actions / Node.js CI

Invalid workflow file

The workflow is not valid. .github/workflows/smtp-test.yml (Line: 39, Col: 9): 'run' is already defined