Skip to content

Commit 346a7f5

Browse files
committed
build: create dedicated workflow for genai tests
Moves genai testing from the shared custard-ci workflow to a dedicated workflow file. This ensures tests only run when files in genai/ change, and allows for better isolation.
1 parent b2c188e commit 346a7f5

2 files changed

Lines changed: 33 additions & 0 deletions

File tree

.github/config/nodejs.jsonc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@
7070
"functions/http/uploadFile", // no tests exist
7171
"functions/log", // parent directory
7272
"functions/pubsub", // parent directory
73+
"genai", // tested in .github/workflows/genai.yaml
7374
"memorystore/redis", // parent directory
7475
"recaptcha_enterprise/demosite/app", // no tests exist
7576

.github/workflows/genai.yaml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: genai
2+
on:
3+
push:
4+
branches:
5+
- main
6+
paths:
7+
- 'genai/**'
8+
- '.github/workflows/genai.yaml'
9+
- '.github/workflows/test.yaml'
10+
pull_request:
11+
types:
12+
- opened
13+
- reopened
14+
- synchronize
15+
- labeled
16+
paths:
17+
- 'genai/**'
18+
- '.github/workflows/genai.yaml'
19+
- '.github/workflows/test.yaml'
20+
schedule:
21+
- cron: '0 0 * * 0'
22+
23+
jobs:
24+
test:
25+
permissions:
26+
contents: 'read'
27+
id-token: 'write'
28+
if: github.event.action != 'labeled' || github.event.label.name == 'actions:force-run'
29+
uses: ./.github/workflows/test.yaml
30+
with:
31+
name: 'genai'
32+
path: 'genai'

0 commit comments

Comments
 (0)