-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (48 loc) · 1.57 KB
/
Copy pathci.yml
File metadata and controls
52 lines (48 loc) · 1.57 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
51
52
name: CI
on:
push:
branches: [main, master]
pull_request:
jobs:
relay-typecheck:
name: Relay typecheck + tests
runs-on: ubuntu-latest
defaults:
run:
working-directory: relay-server
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: "20"
cache: "npm"
cache-dependency-path: relay-server/package-lock.json
- run: npm install --no-audit --no-fund
# Use tsc --noEmit so we catch type errors without overwriting dist/.
# The project's tsconfig has "rootDir: ." which causes tsc to emit to
# dist/src/ — we don't want CI writing that back into the tree.
- run: npx tsc --noEmit
- run: npm test
bridge-syntax:
name: Bridge syntax check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: "20"
# Bridge is plain JS (no build). Node parses it to confirm syntax.
- run: node --check agentpulse-bridge/extension.js
ios-lint:
name: iOS SwiftLint (soft)
runs-on: macos-14
steps:
- uses: actions/checkout@v4
# SwiftLint is best-effort for now — we don't want to hard-block merges
# on style until we've adopted a ruleset. `continue-on-error` keeps the
# job green but the output is still visible in the Actions tab.
- name: Run SwiftLint
continue-on-error: true
run: |
brew install swiftlint
swiftlint lint --quiet --strict AgentPulse/ AgentPulseShared/ || true