Skip to content

Support JS SDK Testing #2

Support JS SDK Testing

Support JS SDK Testing #2

# .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