-
Notifications
You must be signed in to change notification settings - Fork 5.5k
50 lines (40 loc) · 1.32 KB
/
cloud-gateway-webhook.yml
File metadata and controls
50 lines (40 loc) · 1.32 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
name: Cloud Gateway Webhook
# Source: cloud/.github/workflows/gateway-webhook.yml in the original elizaOS/cloud repo.
on:
push:
branches: [main, develop]
paths:
- "cloud/services/gateway-webhook/**"
- ".github/workflows/cloud-gateway-webhook.yml"
pull_request:
branches: [main, develop]
paths:
- "cloud/services/gateway-webhook/**"
- ".github/workflows/cloud-gateway-webhook.yml"
concurrency:
group: cloud-gateway-webhook-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
defaults:
run:
working-directory: cloud
env:
BUN_VERSION: "1.3.9"
jobs:
test:
name: Test
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v5
- uses: oven-sh/setup-bun@v2
with:
bun-version: ${{ env.BUN_VERSION }}
- name: Install root dependencies
run: bun install --frozen-lockfile
- name: Install service dependencies
run: cd services/gateway-webhook && bun install --frozen-lockfile
- name: Run unit tests (isolated — mock.module is process-global in bun)
working-directory: cloud/services/gateway-webhook
run: |
bun test ./__tests__/build-forward-body.test.ts --timeout 60000
bun test ./__tests__/internal-auth.test.ts --timeout 60000