Skip to content

Commit 3c3de89

Browse files
committed
✨ feat: add runtime tests to build workflow and update test script in runtime package
1 parent 4e5453e commit 3c3de89

3 files changed

Lines changed: 4 additions & 1 deletion

File tree

.github/workflows/build.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ jobs:
3838
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3939
- name: compile tests
4040
run: pnpm run test:compile
41+
- name: runtime tests
42+
run: pnpm run test:runtime
4143
- name: unit tests
4244
run: pnpm run test:samples
4345
env:

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@
9494
"test:scripts": "cd packages/sample/ && pnpm test:scripts",
9595
"test:scripts:view": "cd packages/sample/ && pnpm test:scripts:view",
9696
"test:system": "cd packages/core && node ../cli/dist/src/index.js scripts compile",
97+
"test:runtime": "cd packages/runtime && pnpm run test",
9798
"tsx": "tsx",
9899
"typecheck": "echo skipped",
99100
"typecheck:web": "pnpm --filter=@genaiscript/web run typecheck",

packages/runtime/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
"lint:fix": "eslint src --fix --fix-type [problem,suggestion]",
5050
"pack": "npm pack 2>&1",
5151
"prepack": "npm run build",
52-
"test": "vitest"
52+
"test": "vitest --run"
5353
},
5454
"keywords": [],
5555
"author": "Microsoft Corporation",

0 commit comments

Comments
 (0)