Skip to content

Commit 69698f4

Browse files
authored
Add CI workflow (#1)
1 parent f981188 commit 69698f4

1 file changed

Lines changed: 33 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: CI
2+
on:
3+
push:
4+
branches: [ main ]
5+
pull_request:
6+
branches: [ main ]
7+
jobs:
8+
test:
9+
runs-on: ubuntu-latest
10+
timeout-minutes: 60
11+
steps:
12+
- uses: actions/checkout@v4
13+
- uses: actions/setup-node@v4
14+
with:
15+
node-version: 24
16+
- run: npm ci
17+
- run: npm run test
18+
19+
deploy:
20+
if: github.ref == 'refs/heads/main'
21+
needs: test
22+
runs-on: ubuntu-latest
23+
timeout-minutes: 60
24+
steps:
25+
- uses: actions/checkout@v4
26+
- uses: actions/setup-node@v4
27+
with:
28+
node-version: 24
29+
- name: Build & Deploy Worker
30+
uses: cloudflare/wrangler-action@v3
31+
with:
32+
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
33+
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}

0 commit comments

Comments
 (0)