Fix /metrics
to return JSON instead of plain text
#194
Workflow file for this run
This file contains 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 | |
on: push | |
jobs: | |
bun-test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Install bun | |
uses: oven-sh/setup-bun@v1 | |
- name: 'Install Dependencies' | |
run: | | |
bun install | |
- name: 'Run lint' | |
run: | | |
bun lint | |
- name: 'Run test' | |
run: | | |
bun test | |
env: | |
PORT: ${{ vars.PORT }} | |
HOSTNAME: ${{ vars.HOSTNAME }} | |
HOST: ${{ vars.HOST }} | |
USERNAME: ${{ secrets.USERNAME }} | |
PASSWORD: ${{ secrets.PASSWORD }} | |
TABLE: ${{ secrets.TABLE }} |