-
Notifications
You must be signed in to change notification settings - Fork 1
71 lines (61 loc) · 2 KB
/
test-build.yml
File metadata and controls
71 lines (61 loc) · 2 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
59
60
61
62
63
64
65
66
67
68
69
70
71
name: Test Documentation Build
on:
pull_request:
branches:
- main
workflow_dispatch:
jobs:
test-build:
runs-on: ubuntu-22.04
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.1'
bundler-cache: true
- name: Install system dependencies
run: |
sudo apt-get update
sudo apt-get install -y \
doxygen \
graphviz \
git \
curl \
build-essential
- name: Setup Git configuration
run: |
git config --global user.name 'Documentation Bot'
git config --global user.email 'action@github.com'
- name: Test documentation generation (single distribution)
run: |
echo "Testing documentation generation for Humble only..."
# Modify the script to only build Humble for testing
sed -i 's/DISTRIBUTIONS=("humble" "jazzy" "rolling")/DISTRIBUTIONS=("humble")/' scripts/generate-docs.sh
./scripts/generate-docs.sh
echo "Test documentation generation completed"
- name: Test Jekyll build
run: |
echo "Testing Jekyll site build..."
bundle exec jekyll build --verbose
echo "Jekyll test build completed"
- name: Validate generated files
run: |
echo "Validating generated documentation..."
if [ -d "humble/html" ]; then
echo "✓ Humble documentation generated"
ls -la humble/html/ | head -10
else
echo "✗ Humble documentation not found"
exit 1
fi
if [ -f "_site/index.html" ]; then
echo "✓ Jekyll site generated"
else
echo "✗ Jekyll site not generated"
exit 1
fi
echo "Validation completed successfully"