Skip to content

Commit 37d4044

Browse files
committed
setup gh actions
1 parent 4a3e602 commit 37d4044

File tree

4 files changed

+21
-1
lines changed

4 files changed

+21
-1
lines changed

.github/workflows/stories.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
name: stories
2+
jobs:
3+
node:
4+
name: stories-node
5+
runs-on: ubuntu-latest
6+
steps:
7+
- uses: actions/checkout@v4
8+
- uses: oven-sh/setup-bun@v2
9+
- run: bun install --global @openfn/cli
10+
- run: bun stories:cli

.github/workflows/test.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
name: test
2+
jobs:
3+
test:
4+
name: test
5+
runs-on: ubuntu-latest
6+
steps:
7+
- uses: actions/checkout@v4
8+
- uses: oven-sh/setup-bun@v2
9+
- run: bun test:unit

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
"private": true,
66
"scripts": {
77
"clean": "rimraf tmp",
8+
"test:unit": "bun test ./test",
89
"stories": "bun test stories --preload ./src/preload.ts",
910
"stories:cli": "OPENFN_RUNNER=cli bun stories",
1011
"stories:lightning": "OPENFN_RUNNER=lighting bun stories"

test/runners/cli.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import initTest from "../../src/test";
44

55
const test = initTest(import.meta.filename);
66

7-
test("should execute a workflow", (ctx) => {
7+
test.skip("should execute a workflow", (ctx) => {
88
ctx.createFile(ctx.name + ".json", "hello world");
99
// generate a project
1010
// write it to disk (where? how?)

0 commit comments

Comments
 (0)