-
Notifications
You must be signed in to change notification settings - Fork 114
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into fix.mailJetSource
- Loading branch information
Showing
31 changed files
with
7,571 additions
and
2,770 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
name: Component Test Reporter | ||
|
||
on: | ||
pull_request: | ||
types: | ||
- opened | ||
- reopened | ||
- synchronize | ||
|
||
permissions: | ||
id-token: write # allows the JWT to be requested from GitHub's OIDC provider | ||
contents: read # This is required for actions/checkout | ||
|
||
jobs: | ||
test_and_upload: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Configure AWS Credentials | ||
uses: aws-actions/configure-aws-credentials@v4 | ||
with: | ||
role-to-assume: arn:aws:iam::${{ secrets.AWS_DEV_ACCOUNT_ID }}:role/${{ secrets.AWS_DEV_S3_SYNC_ROLE }} | ||
aws-region: us-east-1 | ||
|
||
- name: Checkout | ||
uses: actions/[email protected] | ||
with: | ||
fetch-depth: 1 | ||
|
||
- name: Setup Node | ||
uses: actions/[email protected] | ||
with: | ||
node-version-file: '.nvmrc' | ||
cache: 'npm' | ||
|
||
- name: Install Dependencies | ||
run: npm ci | ||
|
||
- name: Run Tests and Generate Report | ||
run: | | ||
npm run test:ts -- component | ||
- name: Uplaod Report to S3 | ||
run: | | ||
aws s3 cp ./test_reports/ s3://test-integrations-dev/integrations-test-reports/rudder-transformer/${{ github.event.number }}/ --recursive | ||
- name: Comment on PR with S3 Object URL | ||
uses: actions/github-script@v7 | ||
with: | ||
github-token: ${{ secrets.PAT }} | ||
script: | | ||
const { owner, repo } = context.repo; | ||
// Get the pull request number | ||
const prNumber = context.payload.pull_request.number; | ||
const commentBody = `Test report for this run is available at: https://test-integrations-dev.s3.amazonaws.com/integrations-test-reports/rudder-transformer/${prNumber}/test-report.html`; | ||
// Comment on the pull request | ||
github.rest.issues.createComment({ | ||
owner, | ||
repo, | ||
issue_number: prNumber, | ||
body: commentBody | ||
}); | ||
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 |
---|---|---|
|
@@ -134,4 +134,7 @@ dist | |
**/.DS_Store | ||
|
||
|
||
.idea | ||
.idea | ||
|
||
# component test report | ||
test_reports/ |
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,133 @@ | ||
[ | ||
{ | ||
"destKey": "event_id", | ||
"sourceKeys": ["properties.eventId", "properties.event_id", "messageId"], | ||
"required": false | ||
}, | ||
{ | ||
"destKey": "event_time", | ||
"sourceKeys": "timestamp", | ||
"sourceFromGenericMap": true, | ||
"required": true, | ||
"metadata": { | ||
"type": "secondTimestamp" | ||
} | ||
}, | ||
{ | ||
"destKey": "limited_data_use", | ||
"sourceKeys": "properties.limited_data_use", | ||
"required": false | ||
}, | ||
{ | ||
"destKey": "properties.contents", | ||
"sourceKeys": "properties.contents", | ||
"required": false | ||
}, | ||
{ | ||
"destKey": "properties.content_type", | ||
"sourceKeys": ["properties.contentType", "properties.content_type"], | ||
"metadata": { | ||
"defaultValue": "product" | ||
} | ||
}, | ||
{ | ||
"destKey": "properties.shop_id", | ||
"sourceKeys": ["properties.shop_id", "properties.shopId"], | ||
"required": false, | ||
"metadata": { | ||
"type": "toString" | ||
} | ||
}, | ||
{ | ||
"destKey": "properties.order_id", | ||
"sourceKeys": ["properties.order_id", "properties.orderId"], | ||
"required": false, | ||
"metadata": { | ||
"type": "toString" | ||
} | ||
}, | ||
{ | ||
"destKey": "properties.currency", | ||
"sourceKeys": "properties.currency", | ||
"required": false | ||
}, | ||
{ | ||
"destKey": "properties.value", | ||
"sourceKeys": "properties.value", | ||
"required": false | ||
}, | ||
{ | ||
"destKey": "properties.description", | ||
"sourceKeys": "properties.description", | ||
"required": false | ||
}, | ||
{ | ||
"destKey": "properties.query", | ||
"sourceKeys": "properties.query", | ||
"required": false | ||
}, | ||
{ | ||
"destKey": "page.url", | ||
"sourceKeys": ["properties.context.page.url", "properties.url", "context.page.url"], | ||
"required": true | ||
}, | ||
{ | ||
"destKey": "page.referrer", | ||
"sourceKeys": [ | ||
"properties.context.page.referrer", | ||
"properties.referrer", | ||
"context.page.referrer" | ||
], | ||
"required": false | ||
}, | ||
{ | ||
"destKey": "user.locale", | ||
"sourceKeys": ["properties.context.user.locale", "context.locale"], | ||
"required": false | ||
}, | ||
{ | ||
"destKey": "user.ttclid", | ||
"sourceKeys": "properties.ttclid", | ||
"required": false | ||
}, | ||
{ | ||
"destKey": "user.ttp", | ||
"sourceKeys": ["properties.context.user.ttp", "properties.ttp"], | ||
"required": false | ||
}, | ||
{ | ||
"destKey": "user.email", | ||
"sourceKeys": [ | ||
"properties.context.user.email", | ||
"context.user.email", | ||
"traits.email", | ||
"context.traits.email", | ||
"properties.email" | ||
], | ||
"metadata": { | ||
"type": ["trim", "toLower"] | ||
}, | ||
"required": false | ||
}, | ||
{ | ||
"destKey": "user.phone", | ||
"sourceKeys": [ | ||
"properties.context.user.phone", | ||
"traits.phone", | ||
"context.traits.phone", | ||
"properties.phone" | ||
], | ||
"sourceFromGenericMap": false, | ||
"required": false | ||
}, | ||
{ | ||
"destKey": "user.ip", | ||
"sourceKeys": ["properties.context.user.ip", "context.ip", "request_ip"], | ||
"required": false | ||
}, | ||
{ | ||
"destKey": "user.user_agent", | ||
"sourceKeys": ["properties.context.user.userAgent", "context.userAgent"], | ||
"required": false | ||
} | ||
] |
Oops, something went wrong.