1+ name : Preview CI (Deployment Validation)
2+ # Lightweight CI for preview repo - focuses on deployment readiness
3+ # Comprehensive testing happens on development fork with Nx Cloud
4+
5+ on :
6+ push :
7+ branches : [dev]
8+ pull_request :
9+ branches : [dev]
10+ workflow_dispatch :
11+
12+ permissions :
13+ actions : read
14+ contents : read
15+
16+ env :
17+ HUSKY : 0
18+ # Preview environment configuration
19+ DOCS_ENV : preview
20+ SITE_TITLE : IFLA Standards Portal
21+ SITE_TAGLINE : International Federation of Library Associations and Institutions
22+
23+ jobs :
24+ preview-validation :
25+ name : Preview Deployment Validation
26+ runs-on : ubuntu-latest
27+ steps :
28+ - name : Checkout
29+ uses : actions/checkout@v4
30+ with :
31+ fetch-depth : 0
32+
33+ - name : Setup pnpm
34+ uses : pnpm/action-setup@v4
35+
36+ - name : Setup Node.js
37+ uses : actions/setup-node@v4
38+ with :
39+ node-version : ' 22'
40+ cache : ' pnpm'
41+
42+ - name : Install dependencies
43+ run : pnpm install --no-frozen-lockfile
44+
45+ - name : Preview Environment Validation
46+ run : |
47+ echo "🔍 Preview CI - Deployment Validation Only"
48+ echo "Note: Comprehensive testing handled by development fork"
49+
50+ # Build theme package (required for all validation)
51+ echo "🔧 Building theme package..."
52+ npx nx run @ifla/theme:build
53+
54+ # Basic TypeScript check for deployment readiness
55+ echo "📝 TypeScript compilation check..."
56+ npx tsc --noEmit
57+
58+ # Quick configuration validation
59+ echo "⚙️ Configuration validation..."
60+ node scripts/test-site-builds.js --site portal --env preview --skip-build
61+
62+ # Build one representative site to verify deployment readiness
63+ echo "🏗️ Preview deployment build test..."
64+ npx nx run portal:build
65+
66+ echo "✅ Preview environment ready for deployment"
0 commit comments