fix: Update GitHub Actions workflow for correct Ruby and Node versions #2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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@v4 | |
| - name: Setup Ruby | |
| uses: ruby/setup-ruby@v1 | |
| with: | |
| ruby-version: '3.3.5' | |
| bundler-cache: true | |
| cache-version: 1 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '20.18.0' | |
| cache: 'npm' | |
| - name: Install Node dependencies | |
| run: npm ci | |
| - name: Verify Ruby and Bundle setup | |
| run: | | |
| ruby --version | |
| bundle --version | |
| bundle list | |
| - name: Run Jekyll build | |
| run: bundle exec jekyll build --config _config.yml | |
| - name: Run multilingual tests | |
| run: chmod +x ./test-multilingual.sh && ./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 |