Skip to content

docs: document agent orchestration tools and permissionless default #92

docs: document agent orchestration tools and permissionless default

docs: document agent orchestration tools and permissionless default #92

Workflow file for this run

name: CI
on:
push:
branches:
- main
pull_request:
permissions:
contents: read
jobs:
patch-apply:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v6
- name: Clone pinned upstream revision (sparse)
run: |
REVISION="$(sed -n 's/^REVISION="\([0-9a-f]*\)"$/\1/p' scripts/build.sh)"
test -n "$REVISION"
git clone --filter=blob:none --no-checkout https://github.com/anomalyco/opencode.git /tmp/upstream
git -C /tmp/upstream sparse-checkout set packages
git -C /tmp/upstream fetch origin "$REVISION"
git -C /tmp/upstream checkout --detach "$REVISION"
- name: Check patches apply to the pinned revision
run: |
for patch in patches/*.patch; do
sed 's/\r$//' "$patch" | git -C /tmp/upstream apply --check -
echo "OK: $patch"
done
test:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v6
- name: Check shell scripts
run: bash -n scripts/build.sh scripts/install.sh
- name: Check PowerShell installer
shell: pwsh
run: |
$tokens = $null
$errors = $null
[System.Management.Automation.Language.Parser]::ParseFile(
(Resolve-Path scripts/install.ps1),
[ref]$tokens,
[ref]$errors
) | Out-Null
if ($errors.Count -gt 0) {
$errors | ForEach-Object { Write-Error $_ }
exit 1
}
- name: Run tests
run: npx --yes bun@1.3.14 test test