File tree Expand file tree Collapse file tree 1 file changed +48
-0
lines changed
Expand file tree Collapse file tree 1 file changed +48
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Jekyll Build Test
2+
3+ on :
4+ pull_request :
5+ branches : [ main ]
6+ push :
7+ branches : [ main ]
8+
9+ jobs :
10+ build-test :
11+ runs-on : ubuntu-latest
12+
13+ steps :
14+ - name : Checkout repository
15+ uses : actions/checkout@v4
16+ with :
17+ # Fetch submodules since the site uses external documentation
18+ submodules : ' recursive'
19+ fetch-depth : 1
20+
21+ - name : Build with Jekyll
22+ uses : actions/jekyll-build-pages@v1
23+ with :
24+ source : .
25+ destination : ./_site
26+ future : false
27+ build_revision : ${{ github.sha }}
28+ verbose : true
29+ token : ${{ secrets.GITHUB_TOKEN }}
30+
31+ - name : Test build artifacts
32+ run : |
33+ if [ ! -d "_site" ]; then
34+ echo "❌ Jekyll build failed - _site directory not created"
35+ exit 1
36+ fi
37+
38+ if [ ! -f "_site/index.html" ]; then
39+ echo "❌ Jekyll build failed - index.html not generated"
40+ exit 1
41+ fi
42+
43+ echo "✅ Jekyll build completed successfully"
44+ echo "📊 Build statistics:"
45+ echo " - Total files: $(find _site -type f | wc -l)"
46+ echo " - HTML files: $(find _site -name "*.html" | wc -l)"
47+ echo " - CSS files: $(find _site -name "*.css" | wc -l)"
48+ echo " - JS files: $(find _site -name "*.js" | wc -l)"
You can’t perform that action at this time.
0 commit comments