-
Notifications
You must be signed in to change notification settings - Fork 0
66 lines (56 loc) · 1.73 KB
/
pr-quality-checks.yml
File metadata and controls
66 lines (56 loc) · 1.73 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
60
61
62
63
64
65
66
name: PR Quality Checks
on:
pull_request:
paths:
- 'apps/**'
- 'packages/**'
- '.github/workflows/**'
- '*.json'
- '*.js'
- '*.ts'
- '*.tsx'
- 'yarn.lock'
- 'turbo.json'
- 'biome.json'
- '!**/*.md'
- '!**/*.txt'
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number }}
cancel-in-progress: true
jobs:
quality-checks:
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: '22.9.0'
- name: Setup Yarn Corepack
run: corepack enable
- name: Install dependencies
run: yarn install
- name: Cache Turbo
uses: actions/cache@v4
with:
path: .turbo
key: ${{ runner.os }}-turbo-${{ github.ref_name }}-${{ hashFiles('**/yarn.lock') }}-${{ github.sha }}
restore-keys: |
${{ runner.os }}-turbo-${{ github.ref_name }}-${{ hashFiles('**/yarn.lock') }}-
${{ runner.os }}-turbo-${{ github.ref_name }}-
${{ runner.os }}-turbo-
- name: Run Turbo lint
run: yarn turbo run lint
- name: Run Turbo typecheck
run: yarn turbo run type-check --filter=@lambdacurry/forms
- name: Summary
run: |
echo "## PR Quality Checks Summary" >> $GITHUB_STEP_SUMMARY
echo "✅ Linting passed (Biome)" >> $GITHUB_STEP_SUMMARY
echo "✅ TypeScript compilation passed" >> $GITHUB_STEP_SUMMARY
echo "✅ All checks completed with Turbo caching" >> $GITHUB_STEP_SUMMARY