We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 18940f9 commit cb81b8aCopy full SHA for cb81b8a
.github/workflows/emulator-test.yml
@@ -22,6 +22,20 @@ jobs:
22
run: |
23
gcloud beta emulators datastore start --host-port=localhost:8010 --project=dummy-project &
24
sleep 10
25
+ - name: Wait for Datastore Emulator to be ready
26
+ run: |
27
+ for i in {1..30}; do
28
+ if nc -z localhost 8010; then
29
+ echo "Datastore emulator is up!"
30
+ break
31
+ fi
32
+ echo "Waiting for emulator... ($i)"
33
+ sleep 1
34
+ done
35
+ if ! nc -z localhost 8010; then
36
+ echo "Emulator did not start in time!" >&2
37
+ exit 1
38
39
- name: Set environment variables
40
41
echo "DATASTORE_EMULATOR_HOST=localhost:8010" >> $GITHUB_ENV
0 commit comments