Skip to content

Commit 68c544d

Browse files
committed
Initial commit
0 parents  commit 68c544d

File tree

4 files changed

+43
-0
lines changed

4 files changed

+43
-0
lines changed

.github/workflows/action.yml

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Test
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
request:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v2
10+
with:
11+
ref: ${{ github.ref }}
12+
- name: Rudder Transformer Test and Publish
13+
uses: rudderlabs/[email protected]
14+
with:
15+
metaPath: './meta.json'
16+
17+
accessKey: '1r46nxxn1jOLmQRWeTcXBLbmyJ6'
18+
serverEndpoint: 'https://api.dev.rudderlabs.com'
19+
uploadTestArtifact: true
20+

libraries/library1.js

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
export function getName() {
2+
return "Name";
3+
}

meta.json

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"transformations":[
3+
{
4+
"file":"./transformations/transformation1.js",
5+
"name":"transformation1",
6+
"description": "Description1"
7+
}
8+
],
9+
"libraries": [
10+
{
11+
"file":"./libraries/library1.js",
12+
"name":"library1",
13+
"description": "Lib-Description1"
14+
}
15+
]
16+
}

transformations/transformation1.js

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
import { getName } from 'library1';
2+
export function transformEvent(event, metadata) {
3+
return event;
4+
}

0 commit comments

Comments
 (0)