From cca55754c68b82cd4435ef17995dc6ce2a8d1d95 Mon Sep 17 00:00:00 2001 From: Shreya Khajanchi Date: Tue, 5 Dec 2023 11:12:45 +0530 Subject: [PATCH] updated github action --- .../integration-tests-against-emulator.yaml | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/.github/workflows/integration-tests-against-emulator.yaml b/.github/workflows/integration-tests-against-emulator.yaml index 020a9a0be8..2378449e4b 100644 --- a/.github/workflows/integration-tests-against-emulator.yaml +++ b/.github/workflows/integration-tests-against-emulator.yaml @@ -148,22 +148,23 @@ jobs: - run: gcloud config set api_endpoint_overrides/spanner http://localhost:9020/ - run: gcloud spanner instances create test-instance --config=emulator-config --description="Test Instance" --nodes=1 - # run tests - name: Set up Node.js - uses: actions/setup-node@v3 + uses: actions/setup-node@v2 with: - node-version: '14' - - name: Start Local Server - run: go run github.com/GoogleCloudPlatform/spanner-migration-tool web & - env: - SPANNER_EMULATOR_HOST: localhost:9010 + node-version: 16 - name: Install Dependencies run: | cd ui npm ci + + - name: Start Local Server + run: | + cd ui + npm start & + - name: Wait for Local Server to Start - run: npx wait-on http://localhost:8080 -t 30000 + run: npx wait-on http://localhost:4200 -t 30000 - name: Cypress run run: |