From 1e976773d0f72d6c912ebd10dd23905c2cde846e Mon Sep 17 00:00:00 2001 From: Dean Rie Date: Tue, 13 Oct 2026 13:15:41 +0300 Subject: [PATCH] ci: run bun typecheck and tests for the two script packages on PRs --- .github/workflows/script-packages.yml | 42 +++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 .github/workflows/script-packages.yml diff --git a/.github/workflows/script-packages.yml b/.github/workflows/script-packages.yml new file mode 100644 index 000000000..b582333f4 --- /dev/null +++ b/.github/workflows/script-packages.yml @@ -0,0 +1,42 @@ +name: Script packages + +# The two skills that ship TypeScript scripts carry their own tests and +# typecheck configs. Run them on every PR that touches those packages so a +# change to a script cannot land with a failing test. Each package is checked +# on its own; a failure in one does not hide the other. + +on: + pull_request: + paths: + - "orchestrate/skills/orchestrate/scripts/**" + - "pstack/skills/poteto-mode/scripts/**" + - ".github/workflows/script-packages.yml" + +jobs: + check: + name: ${{ matrix.package }} + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + package: + - orchestrate/skills/orchestrate/scripts + - pstack/skills/poteto-mode/scripts + defaults: + run: + working-directory: ${{ matrix.package }} + steps: + - uses: actions/checkout@v4 + + - uses: oven-sh/setup-bun@v2 + with: + bun-version: latest + + - name: Install dependencies + run: bun install --frozen-lockfile + + - name: Typecheck + run: bun run typecheck + + - name: Test + run: bun run test