-
Notifications
You must be signed in to change notification settings - Fork 56
50 lines (41 loc) · 1.12 KB
/
test-multilingual.yml
File metadata and controls
50 lines (41 loc) · 1.12 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
name: Jekyll Polyglot Multilingual Tests
on:
push:
branches: [ main, modernize-2025 ]
pull_request:
branches: [ main ]
jobs:
test-multilingual:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.0'
bundler-cache: true
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: '18'
cache: 'npm'
- name: Install dependencies
run: |
bundle install
npm install
- name: Run Jekyll build
run: bundle exec jekyll build
- name: Run multilingual tests
run: ./test-multilingual.sh
- name: Check for broken links (sample)
run: |
# Basic link verification for main pages
for lang in "" "fr/" "es/" "cs/"; do
echo "Checking ${lang:-en} pages..."
if [ -f "_site/${lang}about/index.html" ]; then
echo "✅ ${lang:-en}about page exists"
else
echo "❌ ${lang:-en}about page missing"
exit 1
fi
done