name: Packager Tests
on:
  pull_request:
    branches: [main]
    paths:
      - "packages/**"

  push:
    branches: [main]
    paths:
      - "packages/**"

jobs:
  packager:
    runs-on: ubuntu-latest

    steps:
      - name: checkout
        uses: actions/checkout@v4

      - uses: oven-sh/setup-bun@v2
        with:
          bun-version: latest

      - name: Install
        run: bun install

      - name: Run lints
        run: bun run ci:lint

      - name: Run tests
        run: bun run ci:test
