Skip to content

Commit a5d0123

Browse files
committed
update CI
1 parent 5461751 commit a5d0123

File tree

1 file changed

+27
-3
lines changed

1 file changed

+27
-3
lines changed

.github/workflows/pr-checks.yml

Lines changed: 27 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,21 +99,27 @@ jobs:
9999
- name: Install dependencies
100100
run: dart pub get
101101

102-
- name: Generate Dart manifest
102+
- name: Generate Dart manifest (basic)
103103
working-directory: example/basic
104104
run: |
105105
dart pub get
106106
dart run build_runner build --delete-conflicting-outputs
107107
108-
- name: Generate Node.js manifest
108+
- name: Generate Dart manifest (with_options)
109+
working-directory: example/with_options
110+
run: |
111+
dart pub get
112+
dart run build_runner build --delete-conflicting-outputs
113+
114+
- name: Generate Node.js manifest (nodejs_reference)
109115
working-directory: example/nodejs_reference
110116
run: |
111117
npm ci
112118
GCLOUD_PROJECT="test-project" PORT="8080" FUNCTIONS_CONTROL_API="true" \
113119
npx firebase-functions > /tmp/ff.log 2>&1 &
114120
FF_PID=$!
115121
116-
for i in {1..20}; do
122+
for i in {1..30}; do
117123
if curl -s http://localhost:8080/__/functions.yaml > /dev/null 2>&1; then
118124
break
119125
fi
@@ -123,6 +129,24 @@ jobs:
123129
curl -s http://localhost:8080/__/functions.yaml | python3 -m json.tool > nodejs_manifest.json
124130
kill $FF_PID 2>/dev/null || true
125131
132+
- name: Generate Node.js manifest (with_options_nodejs)
133+
working-directory: example/with_options_nodejs
134+
run: |
135+
npm ci
136+
GCLOUD_PROJECT="test-project" PORT="8081" FUNCTIONS_CONTROL_API="true" \
137+
npx firebase-functions > /tmp/ff_options.log 2>&1 &
138+
FF_PID=$!
139+
140+
for i in {1..30}; do
141+
if curl -s http://localhost:8081/__/functions.yaml > /dev/null 2>&1; then
142+
break
143+
fi
144+
sleep 1
145+
done
146+
147+
curl -s http://localhost:8081/__/functions.yaml | python3 -m json.tool > nodejs_manifest.json
148+
kill $FF_PID 2>/dev/null || true
149+
126150
- name: Run snapshot tests
127151
run: dart test test/snapshots/manifest_snapshot_test.dart --reporter=github
128152

0 commit comments

Comments
 (0)