Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 42 additions & 0 deletions .github/workflows/script-packages.yml
Original file line number Diff line number Diff line change
@@ -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