-
Notifications
You must be signed in to change notification settings - Fork 18
58 lines (47 loc) · 1.51 KB
/
pr.yml
File metadata and controls
58 lines (47 loc) · 1.51 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
name: PR Validation
concurrency:
group: pr-validation-${{ github.ref }}
cancel-in-progress: true
on:
push:
branches:
- "**" # Run on push to any branch
pull_request:
branches:
- "**" # Run on PR to any branch
schedule:
- cron: "0 0 * * 3" # Wednesdays at midnight check all node js versions
workflow_dispatch:
jobs:
validate:
name: Check Code Quality on Node.js ${{ matrix.node-version }}
runs-on: ubuntu-latest
timeout-minutes: 45
env:
TURBO_TELEMETRY_DISABLED: 1
LLM_MODEL: gpt-5-mini
LLM_TEMPERATURE: 1
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
strategy:
matrix:
node-version: ${{ fromJSON((github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch') && '[22]' || '[22, 24]') }}
fail-fast: false
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: "npm"
cache-dependency-path: "package-lock.json"
- name: Install dependencies
run: npm install
- name: Check code quality
run: npm run check || echo "⚠️ Code quality checks completed with warnings (non-blocking)"
- name: Build packages and apps
run: npm run build
- name: Run API and integration tests
run: npm run test:api && npm run test:integration
env:
CI: true