Skip to content

Commit 98995ef

Browse files
committed
Fix Wrangler installation and add simplified Cloudflare workflows
- Add Wrangler installation to test workflow - Create simplified Cloudflare workflow for testing - Fix workflow configuration issues
1 parent 48f3baa commit 98995ef

File tree

3 files changed

+67
-0
lines changed

3 files changed

+67
-0
lines changed
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Cloudflare Basic
2+
3+
on:
4+
push:
5+
branches:
6+
- cursor/add-cloudflare-worker-to-test-matrix-3aca
7+
workflow_dispatch:
8+
9+
jobs:
10+
test:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v4
14+
- name: Setup Node.js
15+
uses: actions/setup-node@v4
16+
with:
17+
node-version: '20'
18+
- name: Install dependencies
19+
run: npm ci
20+
- name: Install Wrangler
21+
run: npm install -g wrangler@latest
22+
- name: Build
23+
run: npm run build
24+
- name: Test
25+
run: echo "Cloudflare test would run here"
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Cloudflare Test Simple
2+
3+
on:
4+
push:
5+
branches:
6+
- cursor/add-cloudflare-worker-to-test-matrix-3aca
7+
- main
8+
pull_request:
9+
branches:
10+
- main
11+
workflow_dispatch:
12+
13+
jobs:
14+
test-cloudflare:
15+
name: Test Cloudflare Workers
16+
runs-on: ubuntu-latest
17+
steps:
18+
- name: Checkout code
19+
uses: actions/checkout@v4
20+
21+
- name: Setup Node.js
22+
uses: actions/setup-node@v4
23+
with:
24+
node-version: '20'
25+
cache: 'npm'
26+
27+
- name: Install dependencies
28+
run: npm ci
29+
30+
- name: Install Wrangler CLI
31+
run: npm install -g wrangler@latest
32+
33+
- name: Build the SDK
34+
run: npm run build
35+
36+
- name: Test Cloudflare Workers compatibility
37+
run: |
38+
echo "🧪 Testing Cloudflare Workers compatibility..."
39+
npm run test:cloudflare

.github/workflows/test-workflow.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@ jobs:
3737
echo "NPM version: $(npm --version)"
3838
echo "Current branch: $(git branch --show-current)"
3939
40+
- name: Install Wrangler CLI
41+
run: npm install -g wrangler@latest
42+
4043
- name: Test Cloudflare Workers compatibility
4144
run: |
4245
echo "🧪 Testing Cloudflare Workers compatibility..."

0 commit comments

Comments
 (0)