Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add vertex/googleai interface alignment test job #225

Merged
merged 2 commits into from
Aug 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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/
Loading