Skip to content

Commit e72dd26

Browse files
committed
test(github): run source cli in e2e workflow instead of released action
1 parent efa3527 commit e72dd26

1 file changed

Lines changed: 17 additions & 15 deletions

File tree

.github/workflows/test-comment-key.yml

Lines changed: 17 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -21,17 +21,18 @@ jobs:
2121
with:
2222
persist-credentials: false
2323

24-
- name: Run opencode (sticky)
25-
uses: ./github
24+
- uses: ./.github/actions/setup-bun
25+
26+
- name: Run opencode from source (sticky)
27+
run: bun run --cwd packages/opencode ./src/index.ts github run
2628
env:
2729
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
28-
with:
29-
model: opencode/minimax-m2.5-free
30-
use_github_token: true
31-
comment_key: test-sticky
32-
prompt: |
30+
MODEL: opencode/minimax-m2.5-free
31+
USE_GITHUB_TOKEN: "true"
32+
COMMENT_KEY: test-sticky
33+
PROMPT: |
3334
Reply with exactly one sentence:
34-
"Sticky comment test run #${{ github.run_number }}, attempt #${{ github.run_attempt }}."
35+
"Sticky comment test - run #${{ github.run_number }}, attempt #${{ github.run_attempt }}."
3536
Do not add anything else.
3637
3738
# Baseline: should create a new comment on every push.
@@ -48,14 +49,15 @@ jobs:
4849
with:
4950
persist-credentials: false
5051

51-
- name: Run opencode (non-sticky)
52-
uses: ./github
52+
- uses: ./.github/actions/setup-bun
53+
54+
- name: Run opencode from source (non-sticky)
55+
run: bun run --cwd packages/opencode ./src/index.ts github run
5356
env:
5457
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
55-
with:
56-
model: opencode/minimax-m2.5-free
57-
use_github_token: true
58-
prompt: |
58+
MODEL: opencode/minimax-m2.5-free
59+
USE_GITHUB_TOKEN: "true"
60+
PROMPT: |
5961
Reply with exactly one sentence:
60-
"Non-sticky comment test run #${{ github.run_number }}, attempt #${{ github.run_attempt }}."
62+
"Non-sticky comment test - run #${{ github.run_number }}, attempt #${{ github.run_attempt }}."
6163
Do not add anything else.

0 commit comments

Comments
 (0)