chore: convert all js doc test to use snippet. (#881)

This commit is contained in:
Lei Xu
2024-01-28 11:39:25 -08:00
committed by GitHub
parent 5f62302614
commit 22b9eceb12
12 changed files with 246 additions and 232 deletions

View File

@@ -68,31 +68,13 @@ jobs:
run: |
cd node
npm ci
npm run build
npm run build-release
cd ../docs
npm install
- name: Run doc test
run: |
cd docs
npm t
- name: Install dependencies for generated code
run: |
cd docs/test
npm install
- name: Install LanceDB
run: |
cd docs/test/node_modules/vectordb
npm ci
npm run build-release
npm run tsc
- name: Create test files
run: |
cd docs/test
node md_testing.js
- name: Test
env:
LANCEDB_URI: ${{ secrets.LANCEDB_URI }}
LANCEDB_DEV_API_KEY: ${{ secrets.LANCEDB_DEV_API_KEY }}
run: |
cd docs/test/node
for d in *; do cd "$d"; echo "$d".js; node "$d".js; cd ..; done
cd docs
npm t