Skip to content

Commit c411d37

Browse files
authored
Merge branch 'dev' into feat/canceled-prompts-in-history
2 parents 97a9457 + 74b14a2 commit c411d37

482 files changed

Lines changed: 67342 additions & 54733 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/publish.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ jobs:
114114
- build-cli
115115
- version
116116
runs-on: blacksmith-4vcpu-windows-2025
117-
if: github.repository == 'anomalyco/opencode'
117+
if: github.repository == 'anomalyco/opencode' && github.ref_name != 'beta'
118118
env:
119119
AZURE_CLIENT_ID: ${{ secrets.AZURE_CLIENT_ID }}
120120
AZURE_TENANT_ID: ${{ secrets.AZURE_TENANT_ID }}
@@ -213,6 +213,7 @@ jobs:
213213
needs:
214214
- build-cli
215215
- version
216+
if: github.ref_name != 'beta'
216217
continue-on-error: false
217218
env:
218219
AZURE_CLIENT_ID: ${{ secrets.AZURE_CLIENT_ID }}
@@ -389,6 +390,7 @@ jobs:
389390
needs:
390391
- build-cli
391392
- version
393+
if: github.repository == 'anomalyco/opencode' && github.ref_name != 'beta'
392394
continue-on-error: false
393395
env:
394396
AZURE_CLIENT_ID: ${{ secrets.AZURE_CLIENT_ID }}
@@ -421,7 +423,6 @@ jobs:
421423
target: aarch64-unknown-linux-gnu
422424
platform_flag: --linux
423425
runs-on: ${{ matrix.settings.host }}
424-
# if: github.ref_name == 'beta'
425426
steps:
426427
- uses: actions/checkout@v3
427428

@@ -547,6 +548,7 @@ jobs:
547548
- sign-cli-windows
548549
- build-tauri
549550
- build-electron
551+
if: always() && !failure() && !cancelled()
550552
runs-on: blacksmith-4vcpu-ubuntu-2404
551553
steps:
552554
- uses: actions/checkout@v3
@@ -589,12 +591,13 @@ jobs:
589591
path: packages/opencode/dist
590592

591593
- uses: actions/download-artifact@v4
594+
if: github.ref_name != 'beta'
592595
with:
593596
name: opencode-cli-signed-windows
594597
path: packages/opencode/dist
595598

596599
- uses: actions/download-artifact@v4
597-
if: needs.version.outputs.release
600+
if: needs.version.outputs.release && github.ref_name != 'beta'
598601
with:
599602
pattern: latest-yml-*
600603
path: /tmp/latest-yml

.github/workflows/test.yml

Lines changed: 44 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ concurrency:
1515

1616
permissions:
1717
contents: read
18+
checks: write
19+
20+
env:
21+
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true
1822

1923
jobs:
2024
unit:
@@ -37,6 +41,11 @@ jobs:
3741
with:
3842
token: ${{ secrets.GITHUB_TOKEN }}
3943

44+
- name: Setup Node
45+
uses: actions/setup-node@v4
46+
with:
47+
node-version: "24"
48+
4049
- name: Setup Bun
4150
uses: ./.github/actions/setup-bun
4251

@@ -45,14 +54,40 @@ jobs:
4554
git config --global user.email "bot@opencode.ai"
4655
git config --global user.name "opencode"
4756
57+
- name: Cache Turbo
58+
uses: actions/cache@v4
59+
with:
60+
path: node_modules/.cache/turbo
61+
key: turbo-${{ runner.os }}-${{ hashFiles('turbo.json', '**/package.json') }}-${{ github.sha }}
62+
restore-keys: |
63+
turbo-${{ runner.os }}-${{ hashFiles('turbo.json', '**/package.json') }}-
64+
turbo-${{ runner.os }}-
65+
4866
- name: Run unit tests
49-
run: bun turbo test
67+
run: bun turbo test:ci
5068
env:
51-
# Bun 1.3.11 intermittently crashes on Windows during test teardown
52-
# inside the native @parcel/watcher binding. Unit CI does not rely on
53-
# the live watcher backend there, so disable it for that platform.
5469
OPENCODE_EXPERIMENTAL_DISABLE_FILEWATCHER: ${{ runner.os == 'Windows' && 'true' || 'false' }}
5570

71+
- name: Publish unit reports
72+
if: always()
73+
uses: mikepenz/action-junit-report@v6
74+
with:
75+
report_paths: packages/*/.artifacts/unit/junit.xml
76+
check_name: "unit results (${{ matrix.settings.name }})"
77+
detailed_summary: true
78+
include_time_in_summary: true
79+
fail_on_failure: false
80+
81+
- name: Upload unit artifacts
82+
if: always()
83+
uses: actions/upload-artifact@v4
84+
with:
85+
name: unit-${{ matrix.settings.name }}-${{ github.run_attempt }}
86+
include-hidden-files: true
87+
if-no-files-found: ignore
88+
retention-days: 7
89+
path: packages/*/.artifacts/unit/junit.xml
90+
5691
e2e:
5792
name: e2e (${{ matrix.settings.name }})
5893
strategy:
@@ -75,6 +110,11 @@ jobs:
75110
with:
76111
token: ${{ secrets.GITHUB_TOKEN }}
77112

113+
- name: Setup Node
114+
uses: actions/setup-node@v4
115+
with:
116+
node-version: "24"
117+
78118
- name: Setup Bun
79119
uses: ./.github/actions/setup-bun
80120

0 commit comments

Comments
 (0)