Skip to content

Commit 61960e6

Browse files
committed
Add Jekyll build test
1 parent 63b05de commit 61960e6

File tree

1 file changed

+48
-0
lines changed

1 file changed

+48
-0
lines changed
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
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)"

0 commit comments

Comments
 (0)