name: CI

on:
  pull_request:

jobs:
  test-build:
    name: test-build
    runs-on: remote
    steps:
      - uses: actions/checkout@v4
      - uses: oven-sh/setup-bun@v2
      - uses: actions/cache@v4
        with:
          path: |
            ~/.npm
          key: ${{ runner.os }}-bun-${{ hashFiles('**/package-lock.json') }}-${{ hashFiles('**/*.js', '**/*.jsx', '**/*.ts', '**/*.tsx') }}
          restore-keys: |
            ${{ runner.os }}-bun-${{ hashFiles('**/package-lock.json') }}-
      - run: bun install
      - run: bun run build