ci.yml 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577
  1. name: CI
  2. on:
  3. push:
  4. branches: [master]
  5. pull_request:
  6. workflow_dispatch:
  7. inputs:
  8. suite:
  9. description: Manual CI suite to run
  10. required: true
  11. default: larger-runner-benchmark
  12. type: choice
  13. options:
  14. - larger-runner-benchmark
  15. - consolidated-runner-benchmark
  16. concurrency:
  17. group: ${{ github.workflow }}-${{ github.ref }}
  18. cancel-in-progress: true
  19. permissions:
  20. contents: read
  21. env:
  22. PRIMARY_NODE_VERSION: '24'
  23. jobs:
  24. # One enterprise runner pays setup once, then executes the complete
  25. # unsharded primary Node inventory with repository-level concurrency.
  26. node-24:
  27. if: github.event_name == 'pull_request'
  28. runs-on: dsh-enterprise-ubuntu-24-04-32core-test
  29. name: node 24 / complete
  30. env:
  31. DSH_COVERAGE_MAX_WORKERS: '16'
  32. DSH_ESLINT_CACHE: '1'
  33. DSH_ESLINT_CONCURRENCY: '16'
  34. DSH_GATE_CONCURRENCY: '10'
  35. DSH_PUBLINT_CONCURRENCY: '16'
  36. DSH_SNAPSHOT_MAX_CONCURRENCY: '8'
  37. steps:
  38. - uses: actions/checkout@v6
  39. with:
  40. persist-credentials: false
  41. # Pull requests consume the default-branch cache but do not put cache
  42. # compression and upload on the paid latency-critical path.
  43. - uses: actions/cache/restore@v4
  44. with:
  45. path: /home/runner/.local/share/pnpm/store/v11
  46. key: ${{ runner.os }}-node-${{ env.PRIMARY_NODE_VERSION }}-pnpm-${{ hashFiles('pnpm-lock.yaml') }}
  47. restore-keys: |
  48. ${{ runner.os }}-node-${{ env.PRIMARY_NODE_VERSION }}-pnpm-
  49. - uses: actions/cache/restore@v4
  50. with:
  51. path: .cache/eslint
  52. key: ${{ runner.os }}-node-${{ env.PRIMARY_NODE_VERSION }}-eslint-full-${{ hashFiles('pnpm-lock.yaml', 'eslint.config.mjs', 'tsconfig.json', 'tsconfig.base.json', 'tsconfig.base.client.json', 'tsconfig.host.json', 'tsconfig.client.json', 'packages/*/*/tsconfig.json', 'examples/*/tsconfig.json') }}
  53. restore-keys: |
  54. ${{ runner.os }}-node-${{ env.PRIMARY_NODE_VERSION }}-eslint-full-
  55. - uses: actions/setup-node@v6
  56. with:
  57. node-version: ${{ env.PRIMARY_NODE_VERSION }}
  58. - name: Enable corepack, install dependencies, and prepare bubblewrap
  59. run: |
  60. corepack enable
  61. pnpm install --frozen-lockfile &
  62. install_pid=$!
  63. bash scripts/prepare-ci-bubblewrap.sh &
  64. sandbox_pid=$!
  65. install_status=0
  66. wait "$install_pid" || install_status=$?
  67. sandbox_status=0
  68. wait "$sandbox_pid" || sandbox_status=$?
  69. if (( install_status != 0 )); then exit "$install_status"; fi
  70. exit "$sandbox_status"
  71. - name: Run complete unsharded primary Node CI concurrently
  72. run: pnpm run check:ci
  73. node-compat:
  74. if: github.event_name == 'pull_request'
  75. # Each compatibility contract receives an independent standard hosted job.
  76. runs-on: ${{ matrix.runner }}
  77. name: ${{ matrix.name }}
  78. env:
  79. DSH_GATE_CONCURRENCY: ${{ matrix.gate_concurrency }}
  80. DSH_NODE_COMPAT_SKIP_TYPECHECK: '1'
  81. strategy:
  82. fail-fast: false
  83. matrix:
  84. include:
  85. - node: '22.19'
  86. name: node 22.19
  87. runner: ubuntu-latest
  88. gate_concurrency: '1'
  89. - node: 26
  90. name: node 26
  91. runner: ubuntu-latest
  92. gate_concurrency: '1'
  93. steps:
  94. - uses: actions/checkout@v6
  95. - uses: actions/setup-node@v6
  96. with:
  97. node-version: ${{ matrix.node }}
  98. - name: Enable corepack and resolve pnpm store path
  99. id: pnpm-store
  100. run: |
  101. corepack enable
  102. echo "path=$(pnpm store path --silent)" >> "$GITHUB_OUTPUT"
  103. - uses: actions/cache@v4
  104. with:
  105. path: ${{ steps.pnpm-store.outputs.path }}
  106. key: ${{ runner.os }}-node-${{ matrix.node }}-pnpm-${{ hashFiles('pnpm-lock.yaml') }}
  107. restore-keys: |
  108. ${{ runner.os }}-node-${{ matrix.node }}-pnpm-
  109. - name: Install (immutable)
  110. run: pnpm install --frozen-lockfile
  111. - name: Run compatibility smokes
  112. run: pnpm run check:node-compat
  113. python-sdk:
  114. if: github.event_name == 'pull_request'
  115. runs-on: ubuntu-latest
  116. name: python 3.10 / keyless SDK
  117. steps:
  118. - uses: actions/checkout@v6
  119. - uses: actions/setup-python@v6
  120. with:
  121. python-version: '3.10'
  122. cache: pip
  123. - name: Install uv
  124. run: python -m pip install uv==0.11.23
  125. - name: Run complete keyless Python suite
  126. run: uv run --python 3.10 --group test --project python/sdk pytest
  127. # One Windows box shares setup across the required build/site checks and the
  128. # complete observational portability inventory. run-gates reports failures
  129. # from observational gates without allowing them to fail the required job.
  130. windows:
  131. if: github.event_name == 'pull_request'
  132. runs-on: dsh-enterprise-windows-2025-32core-test
  133. name: windows node 24 / complete
  134. env:
  135. DSH_COVERAGE_MAX_WORKERS: '12'
  136. DSH_ESLINT_CACHE: '1'
  137. DSH_GATE_CONCURRENCY: '16'
  138. DSH_PUBLINT_CONCURRENCY: '16'
  139. steps:
  140. - uses: actions/checkout@v6
  141. - uses: actions/cache/restore@v4
  142. with:
  143. path: .cache/eslint
  144. key: ${{ runner.os }}-node-${{ env.PRIMARY_NODE_VERSION }}-eslint-full-${{ hashFiles('pnpm-lock.yaml', 'eslint.config.mjs', 'tsconfig.json', 'tsconfig.base.json', 'tsconfig.base.client.json', 'tsconfig.host.json', 'tsconfig.client.json', 'packages/*/*/tsconfig.json', 'examples/*/tsconfig.json') }}
  145. restore-keys: |
  146. ${{ runner.os }}-node-${{ env.PRIMARY_NODE_VERSION }}-eslint-full-
  147. - name: Enable Developer Mode (symlink support)
  148. shell: pwsh
  149. run: >-
  150. reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\AppModelUnlock"
  151. /t REG_DWORD /f /v "AllowDevelopmentWithoutDevLicense" /d "1"
  152. - uses: actions/setup-node@v6
  153. with:
  154. node-version: ${{ env.PRIMARY_NODE_VERSION }}
  155. # Extracting the many-file pnpm store cache is slower than a clean install,
  156. # and saving it adds more latency after gates.
  157. - name: Enable corepack and install (immutable)
  158. shell: pwsh
  159. run: |
  160. corepack enable
  161. pnpm install --frozen-lockfile
  162. - name: Run blocking and observational Windows gates concurrently
  163. shell: pwsh
  164. run: pnpm run check:ci:windows-complete
  165. # Master pushes run only the serial reference jobs below.
  166. # Each host executes the complete, unsharded primary Node aggregate with one
  167. # gate worker, giving reviewers a simple cross-platform oracle for completeness
  168. # and timing.
  169. serial-linux:
  170. if: github.event_name == 'push' && github.ref == 'refs/heads/master'
  171. name: serial / linux
  172. runs-on: ubuntu-latest
  173. steps:
  174. - uses: actions/checkout@v6
  175. - uses: actions/setup-node@v6
  176. with:
  177. node-version: ${{ env.PRIMARY_NODE_VERSION }}
  178. - name: Enable corepack and resolve pnpm store path
  179. id: pnpm-store
  180. run: |
  181. corepack enable
  182. echo "path=$(pnpm store path --silent)" >> "$GITHUB_OUTPUT"
  183. # Master refreshes the caches that pull requests restore without saving.
  184. - uses: actions/cache@v4
  185. with:
  186. path: ${{ steps.pnpm-store.outputs.path }}
  187. key: ${{ runner.os }}-node-${{ env.PRIMARY_NODE_VERSION }}-pnpm-${{ hashFiles('pnpm-lock.yaml') }}
  188. restore-keys: |
  189. ${{ runner.os }}-node-${{ env.PRIMARY_NODE_VERSION }}-pnpm-
  190. - uses: actions/cache@v4
  191. with:
  192. path: .cache/eslint
  193. key: ${{ runner.os }}-node-${{ env.PRIMARY_NODE_VERSION }}-eslint-full-${{ hashFiles('pnpm-lock.yaml', 'eslint.config.mjs', 'tsconfig.json', 'tsconfig.base.json', 'tsconfig.base.client.json', 'tsconfig.host.json', 'tsconfig.client.json', 'packages/*/*/tsconfig.json', 'examples/*/tsconfig.json') }}
  194. restore-keys: |
  195. ${{ runner.os }}-node-${{ env.PRIMARY_NODE_VERSION }}-eslint-full-
  196. - name: Install (immutable)
  197. run: pnpm install --frozen-lockfile
  198. - name: Prepare bubblewrap (unrestrict userns)
  199. run: bash scripts/prepare-ci-bubblewrap.sh
  200. - name: Run complete unsharded primary Node CI serially
  201. env:
  202. DSH_COVERAGE_MAX_WORKERS: '1'
  203. DSH_E2E_MAX_WORKERS: '1'
  204. DSH_ESLINT_CACHE: '1'
  205. DSH_GATE_CONCURRENCY: '1'
  206. DSH_PUBLINT_CONCURRENCY: '1'
  207. DSH_SNAPSHOT_MAX_CONCURRENCY: '1'
  208. run: pnpm run check:ci
  209. serial-macos:
  210. if: github.event_name == 'push' && github.ref == 'refs/heads/master'
  211. name: serial / macos
  212. runs-on: macos-latest
  213. steps:
  214. - uses: actions/checkout@v6
  215. - uses: actions/setup-node@v6
  216. with:
  217. node-version: ${{ env.PRIMARY_NODE_VERSION }}
  218. - name: Enable corepack (pnpm)
  219. run: corepack enable
  220. - name: Install (immutable)
  221. run: pnpm install --frozen-lockfile
  222. - name: Run complete unsharded primary Node CI serially
  223. env:
  224. DSH_COVERAGE_MAX_WORKERS: '1'
  225. DSH_E2E_MAX_WORKERS: '1'
  226. DSH_GATE_CONCURRENCY: '1'
  227. DSH_PUBLINT_CONCURRENCY: '1'
  228. DSH_SNAPSHOT_MAX_CONCURRENCY: '1'
  229. run: pnpm run check:ci
  230. serial-windows:
  231. if: github.event_name == 'push' && github.ref == 'refs/heads/master'
  232. name: serial / windows
  233. runs-on: windows-2025
  234. steps:
  235. - uses: actions/checkout@v6
  236. - name: Enable Developer Mode (symlink support)
  237. shell: pwsh
  238. run: >-
  239. reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\AppModelUnlock"
  240. /t REG_DWORD /f /v "AllowDevelopmentWithoutDevLicense" /d "1"
  241. - uses: actions/setup-node@v6
  242. with:
  243. node-version: ${{ env.PRIMARY_NODE_VERSION }}
  244. - name: Enable corepack (pnpm)
  245. shell: pwsh
  246. run: corepack enable
  247. # Master refreshes the small cache that pull requests restore without
  248. # putting package-store extraction back on the Windows critical path.
  249. - uses: actions/cache@v4
  250. with:
  251. path: .cache/eslint
  252. key: ${{ runner.os }}-node-${{ env.PRIMARY_NODE_VERSION }}-eslint-full-${{ hashFiles('pnpm-lock.yaml', 'eslint.config.mjs', 'tsconfig.json', 'tsconfig.base.json', 'tsconfig.base.client.json', 'tsconfig.host.json', 'tsconfig.client.json', 'packages/*/*/tsconfig.json', 'examples/*/tsconfig.json') }}
  253. restore-keys: |
  254. ${{ runner.os }}-node-${{ env.PRIMARY_NODE_VERSION }}-eslint-full-
  255. - name: Install (immutable)
  256. shell: pwsh
  257. run: pnpm install --frozen-lockfile
  258. - name: Run complete unsharded primary Node CI serially
  259. shell: pwsh
  260. env:
  261. DSH_COVERAGE_MAX_WORKERS: '1'
  262. DSH_E2E_MAX_WORKERS: '1'
  263. DSH_ESLINT_CACHE: '1'
  264. DSH_GATE_CONCURRENCY: '1'
  265. DSH_PUBLINT_CONCURRENCY: '1'
  266. DSH_SNAPSHOT_MAX_CONCURRENCY: '1'
  267. run: pnpm run check:ci
  268. # Manual, bounded comparison of the actual critical Linux and Windows lanes.
  269. # The named pools are restricted at the organization level to this repository.
  270. larger-runner-benchmark:
  271. if: github.event_name == 'workflow_dispatch' && inputs.suite == 'larger-runner-benchmark'
  272. runs-on: ${{ matrix.runner }}
  273. timeout-minutes: 15
  274. strategy:
  275. fail-fast: false
  276. max-parallel: 12
  277. matrix:
  278. include:
  279. - platform: linux
  280. cores: '4'
  281. runner: dsh-ubuntu-24-04-4core
  282. workload: typecheck
  283. - platform: linux
  284. cores: '8'
  285. runner: dsh-ubuntu-24-04-8core
  286. workload: typecheck
  287. - platform: linux
  288. cores: '16'
  289. runner: dsh-ubuntu-24-04-16core
  290. workload: typecheck
  291. - platform: linux
  292. cores: '32'
  293. runner: dsh-ubuntu-24-04-32core
  294. workload: typecheck
  295. - platform: linux
  296. cores: '64'
  297. runner: dsh-ubuntu-24-04-64core
  298. workload: typecheck
  299. - platform: linux
  300. cores: '96'
  301. runner: dsh-ubuntu-24-04-96core
  302. workload: typecheck
  303. - platform: windows
  304. cores: '4'
  305. runner: dsh-windows-2025-4core
  306. workload: production-site
  307. - platform: windows
  308. cores: '8'
  309. runner: dsh-windows-2025-8core
  310. workload: production-site
  311. - platform: windows
  312. cores: '16'
  313. runner: dsh-windows-2025-16core
  314. workload: production-site
  315. - platform: windows
  316. cores: '32'
  317. runner: dsh-windows-2025-32core
  318. workload: production-site
  319. - platform: windows
  320. cores: '64'
  321. runner: dsh-windows-2025-64core
  322. workload: production-site
  323. - platform: windows
  324. cores: '96'
  325. runner: dsh-windows-2025-96core
  326. workload: production-site
  327. steps:
  328. - uses: actions/checkout@v6
  329. - uses: actions/setup-node@v6
  330. with:
  331. node-version: ${{ env.PRIMARY_NODE_VERSION }}
  332. - name: Report runner capacity
  333. run: >-
  334. node -e "const os = require('node:os');
  335. console.log(JSON.stringify({ arch: process.arch, cpus: os.cpus().length,
  336. memoryGiB: Math.round(os.totalmem() / 2 ** 30) }))"
  337. - name: Enable corepack (pnpm)
  338. run: corepack enable
  339. - name: Resolve pnpm store path
  340. if: matrix.platform == 'linux'
  341. id: pnpm-store
  342. run: echo "path=$(pnpm store path --silent)" >> "$GITHUB_OUTPUT"
  343. - uses: actions/cache@v4
  344. if: matrix.platform == 'linux'
  345. with:
  346. path: ${{ steps.pnpm-store.outputs.path }}
  347. key: ${{ runner.os }}-node-${{ env.PRIMARY_NODE_VERSION }}-pnpm-${{ hashFiles('pnpm-lock.yaml') }}
  348. restore-keys: |
  349. ${{ runner.os }}-node-${{ env.PRIMARY_NODE_VERSION }}-pnpm-
  350. - name: Install (immutable)
  351. run: pnpm install --frozen-lockfile
  352. - name: Run critical Linux typecheck lane
  353. if: matrix.platform == 'linux'
  354. run: pnpm run typecheck
  355. - name: Run critical Windows production-site lane
  356. if: matrix.platform == 'windows'
  357. run: pnpm run docs:build
  358. # Manual comparison of the intended low-fanout topology. Linux runs the
  359. # complete unsharded primary aggregate with bounded in-runner parallelism;
  360. # Windows runs both blocking build surfaces concurrently through run-gates.
  361. consolidated-runner-benchmark:
  362. if: github.event_name == 'workflow_dispatch' && inputs.suite == 'consolidated-runner-benchmark'
  363. runs-on: ${{ matrix.runner }}
  364. timeout-minutes: 15
  365. strategy:
  366. fail-fast: false
  367. max-parallel: 12
  368. matrix:
  369. include:
  370. - platform: linux
  371. cores: '4'
  372. runner: dsh-ubuntu-24-04-4core
  373. workers: '4'
  374. - platform: linux
  375. cores: '8'
  376. runner: dsh-ubuntu-24-04-8core
  377. workers: '8'
  378. - platform: linux
  379. cores: '16'
  380. runner: dsh-ubuntu-24-04-16core
  381. workers: '16'
  382. - platform: linux
  383. cores: '32'
  384. runner: dsh-ubuntu-24-04-32core
  385. workers: '32'
  386. - platform: linux
  387. cores: '64'
  388. runner: dsh-ubuntu-24-04-64core
  389. workers: '32'
  390. - platform: linux
  391. cores: '96'
  392. runner: dsh-ubuntu-24-04-96core
  393. workers: '32'
  394. - platform: windows
  395. cores: '4'
  396. runner: dsh-windows-2025-4core
  397. workers: '2'
  398. - platform: windows
  399. cores: '8'
  400. runner: dsh-windows-2025-8core
  401. workers: '2'
  402. - platform: windows
  403. cores: '16'
  404. runner: dsh-windows-2025-16core
  405. workers: '2'
  406. - platform: windows
  407. cores: '32'
  408. runner: dsh-windows-2025-32core
  409. workers: '2'
  410. - platform: windows
  411. cores: '64'
  412. runner: dsh-windows-2025-64core
  413. workers: '2'
  414. - platform: windows
  415. cores: '96'
  416. runner: dsh-windows-2025-96core
  417. workers: '2'
  418. steps:
  419. - uses: actions/checkout@v6
  420. - uses: actions/setup-node@v6
  421. with:
  422. node-version: ${{ env.PRIMARY_NODE_VERSION }}
  423. - name: Report runner capacity
  424. run: >-
  425. node -e "const os = require('node:os');
  426. console.log(JSON.stringify({ arch: process.arch, cpus: os.cpus().length,
  427. memoryGiB: Math.round(os.totalmem() / 2 ** 30) }))"
  428. - name: Enable corepack (pnpm)
  429. run: corepack enable
  430. - name: Resolve pnpm store path (Linux)
  431. if: matrix.platform == 'linux'
  432. id: pnpm-store-linux
  433. run: echo "path=$(pnpm store path --silent)" >> "$GITHUB_OUTPUT"
  434. - name: Resolve pnpm store path (Windows)
  435. if: matrix.platform == 'windows'
  436. id: pnpm-store-windows
  437. shell: pwsh
  438. run: '"path=$(pnpm store path --silent)" >> $env:GITHUB_OUTPUT'
  439. - uses: actions/cache@v4
  440. with:
  441. path: ${{ steps.pnpm-store-linux.outputs.path || steps.pnpm-store-windows.outputs.path }}
  442. key: ${{ runner.os }}-node-${{ env.PRIMARY_NODE_VERSION }}-pnpm-${{ hashFiles('pnpm-lock.yaml') }}
  443. restore-keys: |
  444. ${{ runner.os }}-node-${{ env.PRIMARY_NODE_VERSION }}-pnpm-
  445. - uses: actions/cache@v4
  446. if: matrix.platform == 'linux'
  447. with:
  448. path: .cache/eslint
  449. key: ${{ runner.os }}-node-${{ env.PRIMARY_NODE_VERSION }}-eslint-full-${{ hashFiles('pnpm-lock.yaml', 'eslint.config.mjs', 'tsconfig.json', 'tsconfig.base.json', 'tsconfig.base.client.json', 'tsconfig.host.json', 'tsconfig.client.json', 'packages/*/*/tsconfig.json', 'examples/*/tsconfig.json') }}
  450. restore-keys: |
  451. ${{ runner.os }}-node-${{ env.PRIMARY_NODE_VERSION }}-eslint-full-
  452. - name: Install and prepare Linux
  453. if: matrix.platform == 'linux'
  454. run: |
  455. pnpm install --frozen-lockfile &
  456. install_pid=$!
  457. bash scripts/prepare-ci-bubblewrap.sh &
  458. sandbox_pid=$!
  459. install_status=0
  460. wait "$install_pid" || install_status=$?
  461. sandbox_status=0
  462. wait "$sandbox_pid" || sandbox_status=$?
  463. if (( install_status != 0 )); then exit "$install_status"; fi
  464. exit "$sandbox_status"
  465. - name: Install (immutable)
  466. if: matrix.platform == 'windows'
  467. shell: pwsh
  468. run: pnpm install --frozen-lockfile
  469. - name: Run complete unsharded primary Node CI concurrently
  470. if: matrix.platform == 'linux'
  471. env:
  472. DSH_COVERAGE_MAX_WORKERS: ${{ matrix.workers }}
  473. DSH_ESLINT_CACHE: '1'
  474. DSH_ESLINT_CONCURRENCY: ${{ matrix.workers }}
  475. DSH_GATE_CONCURRENCY: ${{ matrix.workers }}
  476. DSH_PUBLINT_CONCURRENCY: ${{ matrix.workers }}
  477. DSH_SNAPSHOT_MAX_CONCURRENCY: ${{ matrix.workers }}
  478. run: pnpm run check:ci
  479. - name: Run blocking Windows builds concurrently
  480. if: matrix.platform == 'windows'
  481. shell: pwsh
  482. env:
  483. DSH_GATE_CONCURRENCY: ${{ matrix.workers }}
  484. run: pnpm run check:ci:windows-blocking
  485. # Single stable required check for branch protection: require "all checks
  486. # passed" instead of enumerating matrix legs whose names change as lanes and
  487. # node versions evolve. Every blocking job in THIS workflow must be listed in
  488. # `needs`; observational Windows gates share the required Windows job but are
  489. # marked non-blocking inside run-gates. (`needs` cannot reach across workflow
  490. # files; e2e.yml stays its own check.)
  491. # `if: always()` is load-bearing: without it a failed dependency
  492. # would SKIP this job, and GitHub counts a skipped required check as passing
  493. # — so this job always runs and fails on any non-success result, including
  494. # 'cancelled' and 'skipped'.
  495. all-checks-passed:
  496. name: all checks passed
  497. runs-on: ubuntu-latest
  498. needs: [node-24, node-compat, python-sdk, windows]
  499. if: always() && github.event_name == 'pull_request'
  500. steps:
  501. - name: Fail if any needed job did not succeed
  502. if: contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled') || contains(needs.*.result, 'skipped')
  503. run: |
  504. echo "::error::Needed job results: ${{ join(needs.*.result, ', ') }}"
  505. exit 1
  506. - name: All checks passed
  507. run: echo "All needed jobs succeeded (${{ join(needs.*.result, ', ') }})"