From d52102fa7fdf61547f3b4a54a1cc0669dc2bec9e Mon Sep 17 00:00:00 2001 From: Dilip Kola Date: Fri, 14 Jun 2024 10:39:28 +0530 Subject: [PATCH] chore: add verify server start workflow --- .github/workflows/verify-server-start.yml | 34 +++++++++++++++++++++++ package-lock.json | 18 ++++++------ package.json | 4 +-- 3 files changed, 45 insertions(+), 11 deletions(-) create mode 100644 .github/workflows/verify-server-start.yml diff --git a/.github/workflows/verify-server-start.yml b/.github/workflows/verify-server-start.yml new file mode 100644 index 0000000000..3b6151e648 --- /dev/null +++ b/.github/workflows/verify-server-start.yml @@ -0,0 +1,34 @@ +name: Verify Server start + +on: + pull_request: + types: ['opened', 'reopened', 'synchronize'] + +jobs: + check-health: + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v4.1.1 + with: + fetch-depth: 1 + + - name: Setup Node + uses: actions/setup-node@v4.0.2 + with: + node-version-file: '.nvmrc' + cache: 'npm' + + - name: Install Dependencies + run: npm ci + + - name: Start server + run: npm run build:start + + - name: Wait for server to start + run: sleep 10 # Adjust the time as necessary for your server to start + + - name: Check server health + run: | + curl --fail http://localhost:9090/health || exit 1 diff --git a/package-lock.json b/package-lock.json index 04ee1c5a38..3166828d24 100644 --- a/package-lock.json +++ b/package-lock.json @@ -20,8 +20,8 @@ "@ndhoule/extend": "^2.0.0", "@pyroscope/nodejs": "^0.2.9", "@rudderstack/integrations-lib": "^0.2.8", - "@rudderstack/json-template-engine": "^0.13.0", - "@rudderstack/workflow-engine": "^0.8.1", + "@rudderstack/json-template-engine": "^0.13.2", + "@rudderstack/workflow-engine": "^0.8.2", "@shopify/jest-koa-mocks": "^5.1.1", "ajv": "^8.12.0", "ajv-draft-04": "^1.0.0", @@ -4482,17 +4482,17 @@ } }, "node_modules/@rudderstack/json-template-engine": { - "version": "0.13.0", - "resolved": "https://registry.npmjs.org/@rudderstack/json-template-engine/-/json-template-engine-0.13.0.tgz", - "integrity": "sha512-nROhLP8Q8wYdeb7N1qpJvkJRI1b7J9jUFxCcBqeN8C/j1kHTAHgomilQjOnGFb1H+OP6IxI93b+JJ24mIDHXnw==" + "version": "0.13.2", + "resolved": "https://registry.npmjs.org/@rudderstack/json-template-engine/-/json-template-engine-0.13.2.tgz", + "integrity": "sha512-uEyMv/qjm/mP5V8EifJzolvFLtka/dacmvwo9Xk3+MnEbsNN0YLu7Z/qWeyXeDF5chvy8JfaqV8lNgO3SxVG7g==" }, "node_modules/@rudderstack/workflow-engine": { - "version": "0.8.1", - "resolved": "https://registry.npmjs.org/@rudderstack/workflow-engine/-/workflow-engine-0.8.1.tgz", - "integrity": "sha512-6oBG6lLljwci8C9MFqoKyJf+MTwsOyUMWg9yQD5/49nbNdTvazXQ7zpvjzEGgTxe7Ub1ppoDe5eSqZYSoWIAvg==", + "version": "0.8.2", + "resolved": "https://registry.npmjs.org/@rudderstack/workflow-engine/-/workflow-engine-0.8.2.tgz", + "integrity": "sha512-cjn3J8CUarAE3cbASRvkf7A2745Clzkw/ffqGLzD8+9KvTN6mC28Pm9c5169LPDmt+NMUMw0W5xHgNO3cV9eqQ==", "dependencies": { "@aws-crypto/sha256-js": "^5.2.0", - "@rudderstack/json-template-engine": "^0.13.0", + "@rudderstack/json-template-engine": "^0.13.2", "jsonata": "^2.0.5", "lodash": "^4.17.21", "object-sizeof": "^2.6.4", diff --git a/package.json b/package.json index 12ea084bf4..855c7ae3a3 100644 --- a/package.json +++ b/package.json @@ -65,8 +65,8 @@ "@ndhoule/extend": "^2.0.0", "@pyroscope/nodejs": "^0.2.9", "@rudderstack/integrations-lib": "^0.2.8", - "@rudderstack/json-template-engine": "^0.13.0", - "@rudderstack/workflow-engine": "^0.8.1", + "@rudderstack/json-template-engine": "^0.13.2", + "@rudderstack/workflow-engine": "^0.8.2", "@shopify/jest-koa-mocks": "^5.1.1", "ajv": "^8.12.0", "ajv-draft-04": "^1.0.0",