Skip to content

Commit cd16b3a

Browse files
committed
📦 NEW: Deno
1 parent a17f9c7 commit cd16b3a

File tree

2 files changed

+23
-0
lines changed

2 files changed

+23
-0
lines changed

ecosystem-tests/deno/README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# Deno Ecosystem Test
2+
3+
This test runs a minimal workflow using `[email protected]` in a Deno environment.
4+
5+
## How to Run
6+
7+
- Make sure you have Deno installed: https://deno.com/manual/getting_started/installation
8+
- Run: `deno run --allow-net index.ts`
9+
10+
Note: Deno does not use `package.json`. You must use an npm specifier or import map to use npm packages.

ecosystem-tests/deno/index.ts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
// @deno-types="npm:[email protected]"
2+
import {Workflow} from 'npm:[email protected]';
3+
4+
async function main() {
5+
const workflow = new Workflow({debug: true});
6+
const result = await workflow.step({
7+
id: 'hello',
8+
run: async () => 'world',
9+
});
10+
console.log({result});
11+
}
12+
13+
main().catch(console.error);

0 commit comments

Comments
 (0)