Skip to content

test: add homepage feature ci test (#13) #26

test: add homepage feature ci test (#13)

test: add homepage feature ci test (#13) #26

Workflow file for this run

name: Test Metrics
on:
push:
branches:
- main
pull_request:
branches:
- '**'
jobs:
test-metrics:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 18
- name: Install dependencies
run: npm ci
- name: Build
run: npm run build
- name: Run gateway
run: |
export DATABASE_CONFIG="{}"
export TEMPORARY=5
node dist > gateway.log 2>&1 < /dev/null &
- name: Check for /metrics endpoint content type
run: npx npxie content-type-is http://localhost:3000/metrics "text/plain; version=0.0.4; charset=utf-8"