Skip to content

Commit

Permalink
Add vertex/googleai interface alignment test job (#225)
Browse files Browse the repository at this point in the history
  • Loading branch information
hsubox76 authored Aug 19, 2024
1 parent 0d4fe06 commit 1679f40
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 1 deletion.
27 changes: 27 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@ dist/
temp/
*.tgz
.DS_Store
testfiles
testfiles
nodejs-vertexai/

0 comments on commit 1679f40

Please sign in to comment.