diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index f9defb5..5eb68ed 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -82,3 +82,30 @@ jobs: env: GEMINI_API_KEY: ${{ secrets.GEMINI_API_KEY }} run: yarn test:web:integration + + interface-alignment-test: + name: Interface Alignment Test + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Use Node.js + uses: actions/setup-node@v3 + with: + node-version: 20 + cache: 'yarn' + + - name: Get VertexAI repo + # Need to npm install inner repo first or there will be errors + run: | + git clone https://github.com/googleapis/nodejs-vertexai.git + cd nodejs-vertexai + npm install + cd .. + yarn + + - name: Run tests + env: + TEST_REPO: "generative-ai-js" + run: | + npx ts-node nodejs-vertexai/sdk_schema_test/vertex_ai/*test.ts + npx ts-node nodejs-vertexai/sdk_schema_test/google_ai/*test.ts diff --git a/.gitignore b/.gitignore index 9d8425f..d613dd4 100644 --- a/.gitignore +++ b/.gitignore @@ -3,4 +3,5 @@ dist/ temp/ *.tgz .DS_Store -testfiles \ No newline at end of file +testfiles +nodejs-vertexai/ \ No newline at end of file