diff --git a/.github/workflows/javascript_tests.yaml b/.github/workflows/javascript_tests.yaml new file mode 100644 index 0000000..bebb503 --- /dev/null +++ b/.github/workflows/javascript_tests.yaml @@ -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 diff --git a/Makefile b/Makefile index 572295d..956b6ea 100644 --- a/Makefile +++ b/Makefile @@ -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