From 8b9b736c43873cf6d1e50c6ba7245fb4a785d4f7 Mon Sep 17 00:00:00 2001 From: Peter Ling Date: Wed, 10 Jan 2024 14:23:04 +0000 Subject: [PATCH] SLVUU-129: Add script to run layout server --- .github/workflows/test-ui.yml | 8 ++------ vuu-ui/package.json | 1 + 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/.github/workflows/test-ui.yml b/.github/workflows/test-ui.yml index 3ed0729f9a..4cc347cd04 100644 --- a/.github/workflows/test-ui.yml +++ b/.github/workflows/test-ui.yml @@ -33,10 +33,6 @@ jobs: uses: actions/checkout@v3 - name: Install Node & dependencies uses: ./.github/actions/setup-vuu-ui - - name: Start layout server - run: | - cd ./layout-server - mvn spring-boot:run & - name: Run end-to-end tests in Chrome uses: cypress-io/github-action@bd9dda317ed2d4fbffc808ba6cdcd27823b2a13b with: @@ -44,7 +40,7 @@ jobs: working-directory: ./vuu-ui browser: chrome build: npm run showcase:build - start: npm run showcase:preview + start: npm run showcase:preview, npm run layout-server wait-on: http://localhost:4173, http://localhost:8081 - name: Run end-to-end tests in Edge uses: cypress-io/github-action@bd9dda317ed2d4fbffc808ba6cdcd27823b2a13b @@ -53,7 +49,7 @@ jobs: working-directory: ./vuu-ui browser: edge build: npm run showcase:build - start: npm run showcase:preview + start: npm run showcase:preview, npm run layout-server wait-on: http://localhost:4173, http://localhost:8081 # ensure the vuu example still builds diff --git a/vuu-ui/package.json b/vuu-ui/package.json index badd87b1de..d84e29b510 100644 --- a/vuu-ui/package.json +++ b/vuu-ui/package.json @@ -28,6 +28,7 @@ "launch:table": "node ./scripts/launch-table.mjs", "launch:demo:electron": "cd tools/electron && node ./node_modules/.bin/electron .", "launch:showcase": " cd showcase && node scripts/launch.mjs", + "layout-server": "cd ../layout-server && mvn spring-boot:run", "deploy:websocket-test": "node ./tools/deploy-websocket-test.mjs", "view-bundle": "node ./scripts/visualize-bundle.mjs", "type-defs": "node ./scripts/build-all-type-defs.mjs",