Skip to content

Commit

Permalink
add tests and try a workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
dinmukhamedm committed Dec 7, 2024
1 parent c0693e1 commit b6e55b6
Show file tree
Hide file tree
Showing 11 changed files with 847 additions and 46 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: Run Tests

on:
push:
branches:
- test

jobs:
run-tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: npm install
- run: npm test
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"types": "dist/index.d.ts",
"scripts": {
"build": "tsup src/index.ts src/cli.ts --format esm,cjs --dts",
"test": "echo \"Error: no test specified\" && exit 1"
"test": "tsx --test test/*.test.ts"
},
"bin": {
"lmnr": "./dist/cli.js"
Expand Down Expand Up @@ -48,6 +48,7 @@
"llamaindex": "^0.7.10",
"openai": "^4.75.0",
"tsup": "^8.3.5",
"tsx": "^4.19.2",
"typescript": "^5.7.2"
},
"dependencies": {
Expand Down
Loading

0 comments on commit b6e55b6

Please sign in to comment.