Skip to content

Commit

Permalink
chore: add verify server start workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
koladilip committed Jun 14, 2024
1 parent 2288faa commit 56290ec
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 11 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/verify-server-start.yml
Original file line number Diff line number Diff line change
@@ -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/[email protected]
with:
fetch-depth: 1

- name: Setup Node
uses: actions/[email protected]
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
18 changes: 9 additions & 9 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 56290ec

Please sign in to comment.