test: add homepage feature ci test (#13) #26
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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" |