Repository navigation
49 lines (46 loc) · 1.47 KB
/
Copy pathopencode-move.yml
File metadata and controls
49 lines (46 loc) · 1.47 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
name: OpenCode move regression
on:
push:
paths:
- 'src/**'
- 'tests/opencode_move.rs'
- 'tests/real_tty.rs'
- 'Cargo.*'
- '.github/workflows/opencode-move.yml'
pull_request:
paths:
- 'src/**'
- 'tests/opencode_move.rs'
- 'tests/real_tty.rs'
- 'Cargo.*'
- '.github/workflows/opencode-move.yml'
schedule:
# Catch upstream CLI changes even when agentview itself has not changed.
- cron: '10 9 * * *'
workflow_dispatch:
permissions:
contents: read
jobs:
native-move:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-15]
runs-on: ${{ matrix.os }}
timeout-minutes: 10
steps:
- uses: actions/checkout@v7
- uses: dtolnay/rust-toolchain@stable
- uses: actions/setup-node@v6
with:
node-version: '24'
- name: Install the current OpenCode CLI
run: |
npm install --prefix "$RUNNER_TEMP/opencode-cli" opencode-ai@latest
CLI="$RUNNER_TEMP/opencode-cli/node_modules/.bin/opencode"
"$CLI" --version
echo "AGENTVIEW_REAL_OPENCODE_BIN=$CLI" >> "$GITHUB_ENV"
- name: Move a large native session three times without session-migrate
run: cargo test --locked --test opencode_move -- --ignored --nocapture
- name: Check the dashboard keeps the moved session visible
run: cargo test --locked --test real_tty opencode_move_keeps_the_same_row_and_never_hides_its_history