Skip to content

Commit 0ace5f7

Browse files
committed
chores: update repo with tests and ci
1 parent 2c5e330 commit 0ace5f7

File tree

9 files changed

+1622
-50
lines changed

9 files changed

+1622
-50
lines changed

.github/workflows/ci.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
9+
jobs:
10+
test:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- uses: actions/checkout@v4
15+
16+
- name: Setup Node.js
17+
uses: actions/setup-node@v4
18+
with:
19+
node-version: '18'
20+
21+
- name: Install pnpm
22+
uses: pnpm/action-setup@v4
23+
with:
24+
version: 8
25+
26+
- name: Install dependencies
27+
run: pnpm install
28+
29+
- name: Run tests
30+
run: pnpm test
31+
32+
- name: Run typecheck
33+
run: pnpm build
34+
35+
- name: Run lint
36+
run: pnpm lint:fix

.release-it.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"git": {
3+
"commitMessage": "Release ${version}",
4+
"tagName": "v${version}"
5+
},
6+
"github": {
7+
"release": true
8+
},
9+
"npm": {
10+
"publish": true
11+
},
12+
"hooks": {
13+
"before:init": ["pnpm run test", "pnpm run build"],
14+
"after:bump": "pnpm run build"
15+
}
16+
}

examples/tail/src/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ export default new TailExporter({
1919
'x-honeycomb-team': env.HONEYCOMB_API_KEY,
2020
'x-honeycomb-dataset': 'metrics',
2121
},
22+
enableNanoSecondTimestampJitter: true,
23+
enableIsolateId: true,
2224
}),
2325
],
2426
maxBufferSize: 10,

examples/worker/pnpm-lock.yaml

Lines changed: 13 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,10 @@
2727
},
2828
"scripts": {
2929
"build": "tsc",
30-
"prepublishOnly": "npm run build",
30+
"prepublishOnly": "pnpm run build",
3131
"test": "vitest",
32-
"lint:fix": "biome lint --fix"
32+
"lint:fix": "biome lint --fix",
33+
"release": "release-it"
3334
},
3435
"keywords": [
3536
"cloudflare",
@@ -44,11 +45,15 @@
4445
"@cloudflare/vitest-pool-workers": "^0.8.32",
4546
"@cloudflare/workers-types": "^4.20250519.0",
4647
"@types/node": "^22.15.19",
48+
"release-it": "^19.0.3",
4749
"typescript": "^5.2.2",
4850
"vitest": "^3.1.4"
4951
},
5052
"dependencies": {
5153
"flat": "^6.0.1",
5254
"ulid-workers": "^2.1.0"
55+
},
56+
"volta": {
57+
"node": "24.4.0"
5358
}
5459
}

0 commit comments

Comments
 (0)