fix(ci): install OpenCode CLI before running tests
This commit is contained in:
parent
86891078a3
commit
81be19c768
1 changed files with 26 additions and 2 deletions
28
.github/workflows/test-agents.yml
vendored
28
.github/workflows/test-agents.yml
vendored
|
|
@ -28,6 +28,16 @@ jobs:
|
||||||
cache: 'npm'
|
cache: 'npm'
|
||||||
cache-dependency-path: 'evals/framework/package-lock.json'
|
cache-dependency-path: 'evals/framework/package-lock.json'
|
||||||
|
|
||||||
|
- name: Install OpenCode CLI
|
||||||
|
run: |
|
||||||
|
curl -fsSL https://raw.githubusercontent.com/OpenAgentsInc/opencode/main/install.sh | bash
|
||||||
|
echo "$HOME/.opencode/bin" >> $GITHUB_PATH
|
||||||
|
|
||||||
|
- name: Verify OpenCode installation
|
||||||
|
run: |
|
||||||
|
export PATH="$HOME/.opencode/bin:$PATH"
|
||||||
|
opencode --version
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
working-directory: evals/framework
|
working-directory: evals/framework
|
||||||
run: npm install
|
run: npm install
|
||||||
|
|
@ -37,7 +47,9 @@ jobs:
|
||||||
run: npm run build
|
run: npm run build
|
||||||
|
|
||||||
- name: Run OpenAgent smoke test
|
- name: Run OpenAgent smoke test
|
||||||
run: npm run test:ci:openagent
|
run: |
|
||||||
|
export PATH="$HOME/.opencode/bin:$PATH"
|
||||||
|
npm run test:ci:openagent
|
||||||
env:
|
env:
|
||||||
CI: true
|
CI: true
|
||||||
|
|
||||||
|
|
@ -65,6 +77,16 @@ jobs:
|
||||||
cache: 'npm'
|
cache: 'npm'
|
||||||
cache-dependency-path: 'evals/framework/package-lock.json'
|
cache-dependency-path: 'evals/framework/package-lock.json'
|
||||||
|
|
||||||
|
- name: Install OpenCode CLI
|
||||||
|
run: |
|
||||||
|
curl -fsSL https://raw.githubusercontent.com/OpenAgentsInc/opencode/main/install.sh | bash
|
||||||
|
echo "$HOME/.opencode/bin" >> $GITHUB_PATH
|
||||||
|
|
||||||
|
- name: Verify OpenCode installation
|
||||||
|
run: |
|
||||||
|
export PATH="$HOME/.opencode/bin:$PATH"
|
||||||
|
opencode --version
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
working-directory: evals/framework
|
working-directory: evals/framework
|
||||||
run: npm install
|
run: npm install
|
||||||
|
|
@ -74,7 +96,9 @@ jobs:
|
||||||
run: npm run build
|
run: npm run build
|
||||||
|
|
||||||
- name: Run OpenCoder smoke test
|
- name: Run OpenCoder smoke test
|
||||||
run: npm run test:ci:opencoder
|
run: |
|
||||||
|
export PATH="$HOME/.opencode/bin:$PATH"
|
||||||
|
npm run test:ci:opencoder
|
||||||
env:
|
env:
|
||||||
CI: true
|
CI: true
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue