-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'next' of https://github.com/novuhq/novu into add-fcm-da…
…ta-messages
- Loading branch information
Showing
139 changed files
with
10,150 additions
and
14,373 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
name: Run API | ||
|
||
description: Starts and waits for an API running instance | ||
|
||
inputs: | ||
launch_darkly_sdk_key: | ||
description: 'The Launch Darkly SDK key to use' | ||
required: false | ||
default: '' | ||
|
||
runs: | ||
using: composite | ||
|
||
steps: | ||
- name: Build API | ||
shell: bash | ||
run: CI='' pnpm build:api | ||
|
||
- name: Start API | ||
shell: bash | ||
env: | ||
IS_IN_MEMORY_CLUSTER_MODE_ENABLED: true | ||
LAUNCH_DARKLY_SDK_KEY: ${{ inputs.launch_darkly_sdk_key }} | ||
run: cd apps/api && pnpm start:test & | ||
|
||
- name: Wait on API | ||
shell: bash | ||
run: wait-on --timeout=180000 http://localhost:1336/v1/health-check |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
name: Run Backend | ||
|
||
description: Starts and waits for the API and Worker instance | ||
|
||
inputs: | ||
launch_darkly_sdk_key: | ||
description: 'The Launch Darkly SDK key to use' | ||
required: false | ||
default: '' | ||
cypress_github_oauth_client_id: | ||
description: 'Cypress GitHub client ID' | ||
required: true | ||
cypress_github_oauth_client_secret: | ||
description: 'Cypress GitHub client secret' | ||
required: true | ||
|
||
runs: | ||
using: composite | ||
|
||
steps: | ||
- name: Start API in TEST | ||
shell: bash | ||
env: | ||
GITHUB_OAUTH_CLIENT_ID: ${{ inputs.cypress_github_oauth_client_id }} | ||
GITHUB_OAUTH_CLIENT_SECRET: ${{ inputs.cypress_github_oauth_client_secret }} | ||
NODE_ENV: "test" | ||
PORT: "1336" | ||
TZ: "UTC" | ||
GITHUB_OAUTH_REDIRECT: "http://localhost:1336/v1/auth/github/callback" | ||
LAUNCH_DARKLY_SDK_KEY: ${{ inputs.launch_darkly_sdk_key }} | ||
IN_MEMORY_CLUSTER_MODE_ENABLED: true | ||
run: cd apps/api && pnpm start:build & | ||
|
||
- name: Start Worker | ||
shell: bash | ||
env: | ||
NODE_ENV: "test" | ||
PORT: "1342" | ||
TZ: "UTC" | ||
LAUNCH_DARKLY_SDK_KEY: ${{ inputs.launch_darkly_sdk_key }} | ||
IN_MEMORY_CLUSTER_MODE_ENABLED: true | ||
run: cd apps/worker && pnpm start:prod & | ||
|
||
- name: Wait on API and Worker | ||
shell: bash | ||
run: wait-on --timeout=180000 http://localhost:1336/v1/health-check http://localhost:1342/v1/health-check |
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
name: Validate Swagger | ||
|
||
description: Validates the swagger from the API | ||
|
||
runs: | ||
using: composite | ||
|
||
steps: | ||
- name: Get swagger json as file | ||
shell: bash | ||
run: | | ||
curl -o swagger.json http://localhost:1336/api-json | ||
- uses: char0n/swagger-editor-validate@v1 | ||
with: | ||
definition-file: swagger.json | ||
|
||
- name: Kill port for api 1336 for unit tests | ||
shell: bash | ||
run: sudo kill -9 $(sudo lsof -t -i:1336) |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.