Skip to content

chore: add verify server start workflow #1

chore: add verify server start workflow

chore: add verify server start workflow #1

name: Verify Server start
on:
pull_request:
types: ['opened', 'reopened', 'synchronize']
jobs:
build:
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