-
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' into conditions-for-integrations
- Loading branch information
Showing
106 changed files
with
2,777 additions
and
482 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: Checkout Submodules | ||
|
||
description: Checkout private enterprise submodule | ||
|
||
inputs: | ||
enabled: | ||
description: 'Run the action' | ||
required: false | ||
default: 'true' | ||
submodule_token: | ||
description: 'Submodule token to use for checkout' | ||
required: true | ||
submodule_branch: | ||
description: 'Submodule branch to checkout to' | ||
required: true | ||
|
||
runs: | ||
using: composite | ||
|
||
steps: | ||
- name: Checkout submodule | ||
if: ${{ inputs.run == 'true' }} | ||
uses: actions/checkout@v3 | ||
with: | ||
token: ${{ inputs.submodule_token }} | ||
repository: novuhq/packages-enterprise | ||
path: enterprise/packages | ||
ref: ${{ inputs.submodule_branch }} |
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
name: E2E Inbound Mail Tests | ||
|
||
# Controls when the action will run. Triggers the workflow on push or pull request | ||
on: | ||
workflow_call: | ||
inputs: | ||
ee: | ||
description: 'use the ee version of worker' | ||
required: false | ||
default: false | ||
type: boolean | ||
submodules: | ||
description: 'The flag controlling whether we want submodules to checkout' | ||
required: false | ||
default: false | ||
type: boolean | ||
submodule_branch: | ||
description: 'Submodule branch to checkout to' | ||
required: false | ||
default: 'main' | ||
type: string | ||
|
||
# A workflow run is made up of one or more jobs that can run sequentially or in parallel | ||
jobs: | ||
# This workflow contains a single job called "build" | ||
e2e_inbound_mail: | ||
# The type of runner that the job will run on | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 80 | ||
|
||
permissions: | ||
contents: read | ||
packages: write | ||
deployments: write | ||
id-token: write | ||
|
||
# Steps represent a sequence of tasks that will be executed as part of the job | ||
steps: | ||
# checkout with submodules if token is provided | ||
- uses: actions/checkout@v3 | ||
- uses: ./.github/actions/checkout-submodules | ||
with: | ||
enabled: ${{ steps.setup.outputs.has_token == 'true' }} | ||
submodule_token: ${{ secrets.SUBMODULES_TOKEN }} | ||
submodule_branch: ${{ inputs.submodule_branch }} | ||
- uses: ./.github/actions/setup-project | ||
- uses: ./.github/actions/setup-redis-cluster | ||
- uses: mansagroup/nrwl-nx-action@v3 | ||
with: | ||
targets: lint | ||
projects: "@novu/inbound-mail" | ||
|
||
# Runs a single command using the runners shell | ||
- name: Build Inbound Mail | ||
run: CI='' pnpm build:inbound-mail | ||
|
||
- name: Run unit tests | ||
run: | | ||
cd apps/inbound-mail && pnpm test |
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.