Skip to content

fix: Update deprecated GitHub Actions to latest versions #5

fix: Update deprecated GitHub Actions to latest versions

fix: Update deprecated GitHub Actions to latest versions #5

name: Jekyll Polyglot Multilingual Tests
on:
push:
branches: [ main, modernize-2025 ]
pull_request:
branches: [ main ]
jobs:
test-multilingual:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.3.5'
bundler-cache: true
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20.18.0'
cache: 'npm'
- name: Install Node dependencies (production only)
run: npm ci --only=production
- name: Verify setup
run: |
echo "Ruby version: $(ruby --version)"
echo "Bundle version: $(bundle --version)"
echo "Node version: $(node --version)"
echo "NPM version: $(npm --version)"
echo "Checking bundler gems..."
bundle list --paths
- name: Run Jekyll build
run: bundle exec jekyll build --config _config.yml --verbose
env:
BUNDLE_PATH: vendor/bundle
BUNDLE_JOBS: 4
BUNDLE_RETRY: 3
- name: Run multilingual tests
run: |
chmod +x ./test-multilingual.sh
./test-multilingual.sh
- name: Upload build artifacts on failure
uses: actions/upload-artifact@v4
if: failure()
with:
name: build-artifacts
path: |
_site/
.jekyll-cache/
Gemfile.lock
retention-days: 5