Skip to content

Commit

Permalink
Add CI test
Browse files Browse the repository at this point in the history
  • Loading branch information
seanpmorgan committed Nov 7, 2023
1 parent 87c7f99 commit d5e1a92
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/javascript_tests.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# .github/workflows/javascript_tests.yml
name: Javascript Tests

on: [push, pull_request]

jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v2

- name: Install dependencies
run: make init-js-sdk

- name: Run tests
working-directory: javascript-sdk
env:
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
PINECONE_API_KEY: ${{ secrets.PINECONE_API_KEY }}
PINECONE_ENVIRONMENT: ${{ secrets.PINECONE_ENVIRONMENT }}
PINECONE_INDEX_NAME: ${{ secrets.PINECONE_INDEX_NAME }}
run: |
npm test
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ init-python-sdk:

init: init-python-sdk init-server

init-js-sdk:
cd javascript-sdk; npm install

init-server:
cd server; npm install

Expand Down

0 comments on commit d5e1a92

Please sign in to comment.