Skip to content

Commit 69c6859

Browse files
ci: add PR quality checks for lint and typecheck (modeled after reportory); format .vscode/settings.json via Biome
1 parent 6c45f77 commit 69c6859

2 files changed

Lines changed: 69 additions & 8 deletions

File tree

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
name: PR Quality Checks
2+
3+
on:
4+
pull_request:
5+
paths:
6+
- 'apps/**'
7+
- 'packages/**'
8+
- '.github/workflows/**'
9+
- '*.json'
10+
- '*.js'
11+
- '*.ts'
12+
- '*.tsx'
13+
- 'yarn.lock'
14+
- 'turbo.json'
15+
- 'biome.json'
16+
- '!**/*.md'
17+
- '!**/*.txt'
18+
workflow_dispatch:
19+
20+
concurrency:
21+
group: ${{ github.workflow }}-${{ github.event.pull_request.number }}
22+
cancel-in-progress: true
23+
24+
jobs:
25+
quality-checks:
26+
runs-on: ubuntu-latest
27+
timeout-minutes: 15
28+
steps:
29+
- name: Checkout code
30+
uses: actions/checkout@v4
31+
with:
32+
fetch-depth: 0
33+
34+
- name: Setup Node.js
35+
uses: actions/setup-node@v3
36+
with:
37+
node-version: '22.9.0'
38+
39+
- name: Setup Yarn Corepack
40+
run: corepack enable
41+
42+
- name: Install dependencies
43+
run: yarn install
44+
45+
- name: Cache Turbo
46+
uses: actions/cache@v4
47+
with:
48+
path: .turbo
49+
key: ${{ runner.os }}-turbo-${{ github.ref_name }}-${{ hashFiles('**/yarn.lock') }}-${{ github.sha }}
50+
restore-keys: |
51+
${{ runner.os }}-turbo-${{ github.ref_name }}-${{ hashFiles('**/yarn.lock') }}-
52+
${{ runner.os }}-turbo-${{ github.ref_name }}-
53+
${{ runner.os }}-turbo-
54+
55+
- name: Run Turbo lint
56+
run: yarn turbo run lint
57+
58+
- name: Run Turbo typecheck
59+
run: yarn turbo run type-check
60+
61+
- name: Summary
62+
run: |
63+
echo "## PR Quality Checks Summary" >> $GITHUB_STEP_SUMMARY
64+
echo "✅ Linting passed (Biome)" >> $GITHUB_STEP_SUMMARY
65+
echo "✅ TypeScript compilation passed" >> $GITHUB_STEP_SUMMARY
66+
echo "✅ All checks completed with Turbo caching" >> $GITHUB_STEP_SUMMARY
67+

.vscode/settings.json

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,5 @@
2424
"source.fixAll.biome": "explicit",
2525
"source.organizeImports.biome": "explicit"
2626
},
27-
"tailwindCSS.classAttributes": [
28-
"class",
29-
"className",
30-
"ngClass",
31-
"class:list",
32-
"wrapperClassName"
33-
]
34-
}
27+
"tailwindCSS.classAttributes": ["class", "className", "ngClass", "class:list", "wrapperClassName"]
28+
}

0 commit comments

Comments
 (0)