Repository navigation
178 lines (163 loc) 路 5.79 KB
/
Copy pathnode-runtime-conformance.yml
File metadata and controls
178 lines (163 loc) 路 5.79 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
name: Node Runtime Conformance
on:
schedule:
- cron: "23 * * * *"
workflow_dispatch:
push:
branches: [main]
paths: &validation_paths
- ".github/workflows/node-runtime-conformance.yml"
- "crates/**"
- "packages/gateway-protocol/src/index.ts"
- "packages/gateway-protocol/src/schema/nodes.ts"
- "packages/gateway-protocol/src/validator-registry.ts"
- "src/gateway/node-command-policy.ts"
- "src/gateway/node-invoke-request.ts"
- "src/gateway/node-registry.ts"
- "src/infra/node-invoke-lifecycle-contract.test.ts"
- "src/infra/node-pairing-surface.ts"
- "src/infra/node-runtime-integration-contract.test.ts"
- "src/node-host/invoke-payload.ts"
- "test/fixtures/node-invoke-lifecycle-contract.json"
- "test/fixtures/node-runtime-integration-contract.json"
- ".github/actions/detect-scheduled-changes/**"
- ".github/actions/setup-node-env/**"
- ".github/actions/setup-pnpm-store-cache/**"
- "scripts/test-projects*"
- "scripts/run-vitest*"
- "scripts/lib/**"
- "test/vitest/**"
- "vitest*.ts"
- "tsconfig*.json"
- "node-version.mjs"
- ".npmrc"
- "pnpm-workspace.yaml"
- "patches/**"
- "package.json"
- "pnpm-lock.yaml"
- "src/infra/node-commands.ts"
- "packages/normalization-core/**"
pull_request:
paths: *validation_paths
concurrency:
group: node-runtime-conformance-${{ github.event_name }}-${{ github.event.pull_request.number || github.sha }}
cancel-in-progress: true
permissions:
actions: read
contents: read
env:
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: "true"
jobs:
scope:
if: github.event_name == 'schedule' && github.repository == 'openclaw/openclaw'
runs-on: ubuntu-24.04
outputs:
changed: ${{ steps.scope.outputs.changed }}
steps:
- name: Checkout scheduled admission
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
sparse-checkout: .github/actions/detect-scheduled-changes
persist-credentials: false
- name: Detect scheduled input changes
id: scope
uses: ./.github/actions/detect-scheduled-changes
with:
proof-jobs: |
TypeScript contracts
Rust workspace
# Reuse is stricter than event admission: include transitive source and tool inputs.
paths: |
.github/workflows/node-runtime-conformance.yml
.github/actions/detect-scheduled-changes/**
.github/actions/setup-node-env/**
.github/actions/setup-pnpm-store-cache/**
.npmrc
.pnpmfile.*
pnpmfile.cjs
node-version.mjs
package.json
**/package.json
pnpm-lock.yaml
pnpm-workspace.yaml
patches/**
scripts/**
test/**
vitest*.ts
tsconfig*.json
src/**
packages/**
crates/**
typescript:
needs: scope
if: ${{ !cancelled() && (github.event_name != 'schedule' || needs.scope.outputs.changed == 'true') && (github.event_name != 'schedule' || github.repository == 'openclaw/openclaw') && (github.event_name != 'push' || github.ref != 'refs/heads/main' || vars.OPENCLAW_CI_ON_PUSH == 'true') }}
name: TypeScript contracts
runs-on: ubuntu-24.04
timeout-minutes: 15
steps:
- name: Checkout
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
fetch-depth: 1
fetch-tags: false
persist-credentials: false
submodules: false
- name: Setup Node environment
uses: ./.github/actions/setup-node-env
with:
cache-mode: restore
dependency-cache: "true"
install-bun: "false"
- name: Test shared node contracts
run: >-
pnpm test
src/infra/node-invoke-lifecycle-contract.test.ts
src/infra/node-runtime-integration-contract.test.ts
rust:
needs: scope
if: ${{ !cancelled() && (github.event_name != 'schedule' || needs.scope.outputs.changed == 'true') && (github.event_name != 'schedule' || github.repository == 'openclaw/openclaw') && (github.event_name != 'push' || github.ref != 'refs/heads/main' || vars.OPENCLAW_CI_ON_PUSH == 'true') }}
name: Rust workspace
runs-on: ubuntu-24.04
timeout-minutes: 20
steps:
- name: Checkout
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
fetch-depth: 1
fetch-tags: false
persist-credentials: false
submodules: false
- name: Install Rust
run: rustup toolchain install 1.93.0 --profile minimal --component clippy,rustfmt
- name: Cache Cargo
uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
with:
path: |
~/.cargo/registry
~/.cargo/git
crates/target
key: node-runtime-${{ runner.os }}-${{ hashFiles('crates/Cargo.lock') }}
restore-keys: |
node-runtime-${{ runner.os }}-
- name: Check formatting
run: cargo +1.93.0 fmt --manifest-path crates/Cargo.toml --all -- --check
- name: Run tests
run: cargo +1.93.0 test --manifest-path crates/Cargo.toml --workspace --locked --all-targets
- name: Run Clippy
run: >-
cargo +1.93.0 clippy
--manifest-path crates/Cargo.toml
--workspace
--locked
--all-targets
--
-D warnings
- name: Check documentation
env:
RUSTDOCFLAGS: -D warnings
run: >-
cargo +1.93.0 doc
--manifest-path crates/Cargo.toml
--workspace
--locked
--no-deps