diff --git a/.github/workflows/integration.yml b/.github/workflows/integration.yml index bce337a..86255c3 100644 --- a/.github/workflows/integration.yml +++ b/.github/workflows/integration.yml @@ -29,10 +29,6 @@ jobs: - name: Start Servers working-directory: ./k6 run: | - yarn install - cd graphql-api - bundle install - cd .. ./boot-servers.sh & npx wait-on http://localhost:9292 --timeout 5s npx wait-on http://localhost:9291 --timeout 5s diff --git a/k6/boot-servers.sh b/k6/boot-servers.sh index 8e5477c..1f9876b 100755 --- a/k6/boot-servers.sh +++ b/k6/boot-servers.sh @@ -19,6 +19,11 @@ start_puma_server() { bundle exec puma -C puma.rb | log_with_prefix "$prefix" & } +echo "Installing dependencies..." +yarn install +cd graphql-api +bundle install +cd .. # Start Node.js server echo "Starting usage-api server..." LOG_LEVEL=$LOG_LEVEL node usage-api.js | log_with_prefix "usage-api" &