Skip to content

Commit

Permalink
Merge pull request #1 from rudderlabs/test-action
Browse files Browse the repository at this point in the history
test action
  • Loading branch information
sivashanmukh authored Apr 27, 2021
2 parents aa477bb + fe57fe4 commit bdc972c
Show file tree
Hide file tree
Showing 6 changed files with 80 additions and 877 deletions.
14 changes: 10 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
name: Test

on: [push, pull_request]
on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
request:
Expand All @@ -13,7 +19,7 @@ jobs:
uses: ./
with:
metaPath: './code/meta.json'
email: 'sayan+10@rudderlabs.com'
accessKey: ${{ secrets.ACCESS_KEY }}
serverEndpoint: 'https://1a3bd53e8df2.ngrok.io'
email: 'test1619427853838@rudderlabs.com'
accessKey: '1rhrWotHszP3eVma57BzAP67QWA'
serverEndpoint: 'https://aa88e07d9346.ngrok.io'
uploadTestArtifact: true
6 changes: 3 additions & 3 deletions code/expected.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@
"revenue": 0,
"price": 0,
"profit": 0,
"city": "kolkata",
"country": "India",
"city": "no data found",
"country": "no data found",
"street": "no data found"
},
{
"revenue": 0,
"price": 20,
"profit": 0,
"profit": 20,
"city": "no data found",
"country": "no data found",
"street": "no data found"
Expand Down
20 changes: 16 additions & 4 deletions code/meta.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,35 @@
"transformations": [
{
"file": "./code/code.js",
"name": "action-T13",
"description": "action-T13",
"name": "action-T14",
"description": "action-T14",
"type": "transformation",
"test-input-file": "./code/events.json",
"expected-output": "./code/expected.json"
},
{
"file": "./code/code_2.js",
"name": "action-T13_2",
"name": "action-T14_2",
"description": "action-T13_2",
"type": "transformation"
},
{
"file": "./code/code_3.js",
"name": "action-T13_3",
"name": "action-T14_3",
"description": "action-T13_3",
"type": "transformation"
}
],
"libraries": [
{
"file": "./code/lib1.js",
"name": "getFinanceData13",
"description": "action-T13-lib"
},
{
"file": "./code/lib2.js",
"name": "getUserAddress13",
"description": "action-T13_2-lib"
}
]
}
Loading

0 comments on commit bdc972c

Please sign in to comment.