Repository navigation
ci: format synchronized sources once #3
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: Sync CI | |
| on: | |
| push: | |
| branches: | |
| - sync/lovable-2026-08-08 | |
| permissions: | |
| contents: write | |
| jobs: | |
| verify: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 15 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| ref: sync/lovable-2026-08-08 | |
| - name: Setup Bun | |
| uses: oven-sh/setup-bun@v2 | |
| with: | |
| bun-version: latest | |
| - name: Install dependencies | |
| run: bun install | |
| - name: Format synchronized sources once | |
| run: bunx prettier --write . | |
| - name: Commit formatting if needed | |
| run: | | |
| if ! git diff --quiet; then | |
| git config user.name "github-actions[bot]" | |
| git config user.email "41898282+github-actions[bot]@users.noreply.github.com" | |
| git add . | |
| git commit -m "style: format synchronized sources" | |
| git push origin HEAD:sync/lovable-2026-08-08 | |
| fi | |
| - name: Typecheck | |
| run: bunx tsc --noEmit | |
| - name: Lint | |
| run: bun run lint | |
| - name: Build | |
| run: bun run build |