openpod

An opencode plugin that spins up a dedicated virtual machine for each session to isolate agent work.
git clone https://unitehenry.com/git/openpod.git
Log | Files | Refs | README

commit 7a0798bfd8885b356271589dbaff439b02b663ff
parent 686aac54d91eb20f75f5eb5319fe367147e0cd7f
Author: Henry Unite <unitehenry@gmail.com>
Date:   Mon, 19 Oct 2026 23:46:49 +0000

ci: verify lint, typecheck, and format on pull requests

Run the existing scripts on every pull request. Lint and format rewrite files in place, so those jobs fail when they leave a diff.
Diffstat:
A.github/workflows/ci.yml | 82+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 82 insertions(+), 0 deletions(-)

diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml @@ -0,0 +1,82 @@ +name: CI + +on: + pull_request: + +permissions: + contents: read + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +jobs: + lint: + name: lint + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v7 + with: + persist-credentials: false + + - name: Setup Node.js + uses: actions/setup-node@v7 + with: + node-version: 24 + + - name: Lint + run: bash scripts/lint + + # scripts/lint auto-fixes. Fail if the pull request was not already clean. + - name: Verify lint made no changes + run: | + if ! git diff --exit-code; then + echo "::error::Lint changed files. Run bash scripts/lint and commit the result." + exit 1 + fi + + typecheck: + name: typecheck + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v7 + with: + persist-credentials: false + + - name: Setup Node.js + uses: actions/setup-node@v7 + with: + node-version: 24 + + - name: Install + run: ./scripts/install + + - name: Typecheck + run: ./scripts/typecheck + + format: + name: format + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v7 + with: + persist-credentials: false + + - name: Setup Node.js + uses: actions/setup-node@v7 + with: + node-version: 24 + + - name: Format + run: ./scripts/format + + # scripts/format rewrites files. Fail if the pull request was not already clean. + - name: Verify format made no changes + run: | + if ! git diff --exit-code; then + echo "::error::Format changed files. Run ./scripts/format and commit the result." + exit 1 + fi