-
Notifications
You must be signed in to change notification settings - Fork 0
59 lines (48 loc) · 1.69 KB
/
ci.yml
File metadata and controls
59 lines (48 loc) · 1.69 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
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