Skip to content

Commit 76c392a

Browse files
committed
some rudimentary CI
1 parent 1601ab1 commit 76c392a

File tree

2 files changed

+26
-0
lines changed

2 files changed

+26
-0
lines changed

.github/workflows/ci.yaml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Worker
2+
3+
on:
4+
push:
5+
paths:
6+
- "worker/**"
7+
- ".github/workflows/typecheck.yml"
8+
pull_request:
9+
paths:
10+
- "worker/**"
11+
- ".github/workflows/typecheck.yml"
12+
13+
jobs:
14+
ci:
15+
runs-on: ubuntu-latest
16+
defaults:
17+
run:
18+
working-directory: worker
19+
steps:
20+
- uses: actions/checkout@v4
21+
- uses: actions/setup-node@v4
22+
with:
23+
node-version: "22.16"
24+
- run: npm ci
25+
- run: npm run ci

worker/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
"start": "wrangler dev",
1313
"cf-typegen": "wrangler types",
1414
"typecheck": "npx tsc --noEmit",
15+
"ci": "npm run cf-typegen && npm run typecheck",
1516
"reset-secret": "./reset-secret.sh"
1617
},
1718
"devDependencies": {

0 commit comments

Comments
 (0)