1- name : Jekyll Build Test
1+ name : Build Jekyll Site
22
33on :
44 pull_request :
55 branches : [ main ]
6- push :
7- branches : [ main ]
86
97jobs :
108 build-test :
1412 - name : Checkout repository
1513 uses : actions/checkout@v4
1614 with :
17- # Fetch submodules since the site uses external documentation
1815 submodules : ' recursive'
19- fetch-depth : 1
2016
2117 - name : Build with Jekyll
2218 id : jekyll-build
3127
3228 - name : Check for build warnings
3329 run : |
34- echo "🔍 Checking for potential Jekyll warnings..."
30+ echo "Checking for potential Jekyll warnings..."
3531
3632 # Check for YAML front matter issues in markdown files
3733 YAML_ERRORS=0
4036 # File has front matter, check for common YAML issues
4137 FRONT_MATTER=$(awk '/^---$/{if(NF==1 && !f) f=NR; if(f && NR>f) exit} f && NR>f{print}' "$file")
4238 if echo "$FRONT_MATTER" | grep -E '^\s*[^:]+\s+[^:]+\s*$'; then
43- echo "⚠️ Potential YAML syntax issue in $file"
39+ echo "Potential YAML syntax issue in $file"
4440 echo "$FRONT_MATTER" | grep -E '^\s*[^:]+\s+[^:]+\s*$' | head -3
4541 YAML_ERRORS=$((YAML_ERRORS + 1))
4642 fi
@@ -50,29 +46,21 @@ jobs:
5046
5147 # Check for common Jekyll configuration issues
5248 if grep -q "baseurl.*github.io" _config.yml 2>/dev/null; then
53- echo "⚠️ Warning: baseurl may contain github.io domain - this might cause issues with custom domains"
49+ echo "Warning: baseurl may contain github.io domain - this might cause issues with custom domains"
5450 fi
5551
56- echo "✅ Warning check completed"
52+ echo "Warning check completed"
5753
5854 - name : Test build artifacts
5955 run : |
6056 if [ ! -d "_site" ]; then
61- echo "❌ Jekyll build failed - _site directory not created"
57+ echo "Jekyll build failed - _site directory not created"
6258 exit 1
6359 fi
6460
6561 if [ ! -f "_site/index.html" ]; then
66- echo "❌ Jekyll build failed - index.html not generated"
62+ echo "Jekyll build failed - index.html not generated"
6763 exit 1
6864 fi
6965
70- echo "✅ Jekyll build completed successfully"
71- echo "📊 Build statistics:"
72- echo " - Total files: $(find _site -type f | wc -l)"
73- echo " - HTML files: $(find _site -name "*.html" | wc -l)"
74- echo " - CSS files: $(find _site -name "*.css" | wc -l)"
75- echo " - JS files: $(find _site -name "*.js" | wc -l)"
76-
77- echo ""
78- echo "💡 Note: Check the 'Build with Jekyll' step above for any warnings in the build output"
66+ echo "Jekyll build completed successfully"
0 commit comments