-
Notifications
You must be signed in to change notification settings - Fork 68
77 lines (67 loc) · 2.45 KB
/
test-electrobun-release.yml
File metadata and controls
77 lines (67 loc) · 2.45 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
name: Validate Electrobun Release Workflow
on:
pull_request:
branches: [main, develop]
paths:
- ".github/actions/setup-bun-workspace/**"
- ".github/workflows/release-electrobun.yml"
- ".github/workflows/test-electrobun-release.yml"
- "eliza/packages/app-core/scripts/**"
- "eliza/packages/app-core/platforms/electrobun/**"
- "package.json"
- "scripts/**"
workflow_dispatch:
concurrency:
group: test-electrobun-release-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read
env:
# Pin upstream eliza checkout to a known-good SHA. Upstream develop landed a
# cloud-migration squash that broke milady CI; pinning here keeps reproducibility.
# Bump after upstream stabilizes (or override with MILADY_ELIZA_REF env var).
MILADY_ELIZA_REF: "f7a4e0bc50f966174ea42c41db787359ca6d8e67"
BUN_VERSION: "1.3.13"
NODE_NO_WARNINGS: "1"
jobs:
validate-release-workflow:
name: Release Workflow Contract
runs-on: ${{ github.event_name == 'pull_request' && 'ubuntu-24.04' || (vars.RUNNER_UBUNTU || 'ubuntu-24.04') }}
timeout-minutes: 30
defaults:
run:
shell: bash -euo pipefail {0}
steps:
- name: Checkout
uses: actions/checkout@v6
with:
fetch-depth: 0
submodules: false
- name: Initialize eliza source checkout
run: |
if [ ! -f eliza/package.json ]; then
git clone --depth=1 --branch "${MILADY_ELIZA_BRANCH:-develop}" https://github.com/elizaOS/eliza.git eliza
if [ -n "${MILADY_ELIZA_REF:-}" ]; then
git -C eliza fetch --depth=1 origin "$MILADY_ELIZA_REF"
git -C eliza checkout --quiet FETCH_HEAD
echo "Pinned eliza to ${MILADY_ELIZA_REF}"
fi
fi
- name: Setup Node.js
uses: actions/setup-node@v6
with:
node-version: "24"
- name: Setup Bun workspace
uses: ./.github/actions/setup-bun-workspace
with:
bun-version: ${{ env.BUN_VERSION }}
install-command: bun install --ignore-scripts
install-native-deps: "false"
run-postinstall: "true"
skip-avatar-clone: "true"
no-vision-deps: "true"
skip-local-upstreams-postinstall: "true"
- name: Run regression matrix contract
run: bun run test:regression-matrix:release-contract
- name: Run release contract suite
run: bun run test:release:contract