Refactor resolveClipRelativePoint function for clarity and accuracy #113
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI | |
| on: | |
| pull_request: | |
| push: | |
| branches: | |
| - main | |
| - 'preview/**' | |
| - 'staging/**' | |
| concurrency: | |
| group: ci-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| env: | |
| FIRECRAWL_API_KEY: ${{ secrets.FIRECRAWL_API_KEY }} | |
| NEXT_TELEMETRY_DISABLED: 1 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - uses: oven-sh/setup-bun@v2 | |
| with: | |
| bun-version: 1.2.23 | |
| - name: Cache bun | |
| uses: actions/cache@v4 | |
| with: | |
| path: | | |
| ~/.bun/install/cache | |
| key: ${{ runner.os }}-bun-${{ hashFiles('bun.lock') }} | |
| restore-keys: | | |
| ${{ runner.os }}-bun- | |
| - name: Cache turbo | |
| uses: actions/cache@v4 | |
| with: | |
| path: .turbo | |
| key: ${{ runner.os }}-turbo-${{ hashFiles('**/*', '!**/.git/**', '!**/*.tsbuildinfo') }} | |
| restore-keys: | | |
| ${{ runner.os }}-turbo- | |
| - run: bun install --frozen-lockfile | |
| - name: Clean TypeScript build info | |
| run: | | |
| find . -name "*.tsbuildinfo" -delete || true | |
| find . -name ".tsbuildinfo" -delete || true | |
| - name: Lint | |
| run: bun run lint | |
| - name: Typecheck | |
| run: bun run check-types | |
| - name: Build web | |
| run: | | |
| cd apps/web | |
| bun run build |