Skip to content

Commit 5483d45

Browse files
committed
Add integration tests workflow
1 parent 7ad7833 commit 5483d45

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed
+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Test Integration
2+
3+
on:
4+
schedule:
5+
# Run every day at midnight UTC
6+
- cron: "0 0 * * *"
7+
workflow_dispatch:
8+
9+
env:
10+
NODE_OPTIONS: "--max_old_space_size=4096"
11+
12+
jobs:
13+
test-vertexai:
14+
name: Run Vertex AI Integration Tests
15+
runs-on: ubuntu-latest
16+
17+
steps:
18+
- uses: actions/checkout@v4
19+
with:
20+
# This makes Actions fetch all Git history so run-changed script can diff properly.
21+
fetch-depth: 0
22+
- uses: actions/setup-node@v4
23+
with:
24+
node-version: 22.10.0
25+
- name: Install Chrome stable
26+
run: |
27+
sudo apt-get update
28+
sudo apt-get install google-chrome-stable
29+
- run: yarn
30+
- name: Write Firebase Config for Integration
31+
- run: echo "export const FIREBASE_CONFIG = '$(echo ${{secrets.VERTEXAI_INTEGRATION_FIREBASE_CONFIG }} | jq -r .)'" > packages/vertexai/integration/firebase-config.ts
32+
- run: yarn build:changed core
33+
- name: Run tests on changed packages
34+
run: xvfb-run yarn test:changed core

0 commit comments

Comments
 (0)