Skip to content

Commit 6e9583b

Browse files
committed
env for CI
1 parent 699b6c1 commit 6e9583b

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

.github/workflows/test.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -299,6 +299,11 @@ jobs:
299299
- name: Run E2E tests
300300
run: dart test test/e2e/e2e_test.dart --reporter=expanded
301301
timeout-minutes: 5
302+
env:
303+
# Provide default param values to avoid interactive prompts
304+
WELCOME_MESSAGE: "Hello from Dart Functions!"
305+
MIN_INSTANCES: "0"
306+
IS_PRODUCTION: "false"
302307

303308
- name: Upload test logs on failure
304309
if: failure()

test/e2e/helpers/emulator.dart

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,10 @@ class EmulatorHelper {
6060
workingDirectory: projectPath,
6161
environment: {
6262
'FIREBASE_EMULATOR_HUB': 'true',
63+
// Provide default param values to avoid interactive prompts in CI
64+
'WELCOME_MESSAGE': 'Hello from Dart Functions!',
65+
'MIN_INSTANCES': '0',
66+
'IS_PRODUCTION': 'false',
6367
...Platform.environment,
6468
},
6569
);

0 commit comments

Comments
 (0)