Merge pull request #14 from lambda-curry/codegen/sta-16-upgrade-biome… #4
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: | |
| push: | |
| branches: [main] | |
| workflow_dispatch: | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| env: | |
| TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }} | |
| TURBO_TEAM: ${{ secrets.TURBO_TEAM }} | |
| jobs: | |
| validate: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 15 | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Setup Bun and install dependencies | |
| uses: ./.github/composite/bun-install | |
| - name: Cache Turbo | |
| uses: actions/cache@v4 | |
| with: | |
| path: .turbo | |
| key: ${{ runner.os }}-turbo-${{ github.ref_name }}-${{ hashFiles('**/bun.lockb') }}-${{ github.sha }} | |
| restore-keys: | | |
| ${{ runner.os }}-turbo-${{ github.ref_name }}-${{ hashFiles('**/bun.lockb') }}- | |
| ${{ runner.os }}-turbo-${{ github.ref_name }}- | |
| ${{ runner.os }}-turbo- | |
| - name: Run Turbo lint | |
| run: bun run turbo lint | |
| - name: Run Turbo build | |
| run: bun run turbo build | |
| - name: Run Turbo typecheck | |
| run: bun run turbo typecheck | |
| - name: Run Turbo tests | |
| run: bun run turbo test:ci | |
| - name: Summary | |
| run: | | |
| echo "## Main Branch Validation Summary" >> $GITHUB_STEP_SUMMARY | |
| echo "✅ Linting passed (Biome)" >> $GITHUB_STEP_SUMMARY | |
| echo "✅ Build successful" >> $GITHUB_STEP_SUMMARY | |
| echo "✅ TypeScript compilation passed" >> $GITHUB_STEP_SUMMARY | |
| echo "✅ Tests passed" >> $GITHUB_STEP_SUMMARY | |
| echo "✅ All checks completed with Turbo caching" >> $GITHUB_STEP_SUMMARY | |
| echo "✅ Ready for deployment" >> $GITHUB_STEP_SUMMARY |