Compare commits
4
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
cf7d30d8c2 | ||
|
|
29b2fa0483 | ||
|
|
5ed24d415b | ||
|
|
9379b58dd8 |
No files matched your search
@@ -24,7 +24,7 @@ jobs:
|
|||||||
if: github.event_name == 'pull_request'
|
if: github.event_name == 'pull_request'
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v5
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
- name: Every commit needs a Signed-off-by
|
- name: Every commit needs a Signed-off-by
|
||||||
@@ -48,8 +48,8 @@ jobs:
|
|||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v5
|
||||||
- uses: actions/setup-node@v4
|
- uses: actions/setup-node@v5
|
||||||
with:
|
with:
|
||||||
node-version: '22'
|
node-version: '22'
|
||||||
- run: npm ci
|
- run: npm ci
|
||||||
@@ -71,8 +71,8 @@ jobs:
|
|||||||
matrix:
|
matrix:
|
||||||
runtime: [deno, bun, edge]
|
runtime: [deno, bun, edge]
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v5
|
||||||
- uses: actions/setup-node@v4
|
- uses: actions/setup-node@v5
|
||||||
with:
|
with:
|
||||||
node-version: '22'
|
node-version: '22'
|
||||||
- run: npm ci
|
- run: npm ci
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ jobs:
|
|||||||
if: ${{ github.server_url != 'https://github.com' }}
|
if: ${{ github.server_url != 'https://github.com' }}
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v5
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0 # full history for a clean push
|
fetch-depth: 0 # full history for a clean push
|
||||||
- name: Push to GitHub
|
- name: Push to GitHub
|
||||||
|
|||||||
@@ -30,8 +30,8 @@ jobs:
|
|||||||
id-token: write # OIDC — this is what publishes, and what earns provenance
|
id-token: write # OIDC — this is what publishes, and what earns provenance
|
||||||
contents: write # create the GitHub release for this tag
|
contents: write # create the GitHub release for this tag
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v5
|
||||||
- uses: actions/setup-node@v4
|
- uses: actions/setup-node@v5
|
||||||
with:
|
with:
|
||||||
node-version: '22'
|
node-version: '22'
|
||||||
- uses: denoland/setup-deno@v2
|
- uses: denoland/setup-deno@v2
|
||||||
|
|||||||
@@ -88,7 +88,8 @@ test('the transformer serves the text format with the content type Prometheus ex
|
|||||||
const rendered = prometheus('green_tea_requests_total{route="/x",method="GET",status="200"} 1\n');
|
const rendered = prometheus('green_tea_requests_total{route="/x",method="GET",status="200"} 1\n');
|
||||||
|
|
||||||
assert.equal(rendered.status, 200);
|
assert.equal(rendered.status, 200);
|
||||||
assert.match(rendered.headers!['content-type'], /text\/plain/);
|
// Core RC.1 widens response header values to `string | string[]` (core #113), so a reader narrows.
|
||||||
|
assert.match(String(rendered.headers!['content-type']), /text\/plain/);
|
||||||
assert.match(rendered.body, /green_tea_requests_total/);
|
assert.match(rendered.body, /green_tea_requests_total/);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user