Remove jekyll-multiple-languages-plugin, use Liquid conditionals for … #9
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: Code Quality Checks | |
| on: | |
| push: | |
| branches: [ main ] | |
| pull_request: | |
| branches: [ main ] | |
| jobs: | |
| yaml-lint: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.10' | |
| - name: Install yamllint | |
| run: pip install yamllint | |
| - name: Run yamllint | |
| run: yamllint _config.yml _i18n/ || true | |
| continue-on-error: true | |
| check-files: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Check required files | |
| run: | | |
| echo "Checking required files..." | |
| FILES=( | |
| "_config.yml" | |
| "_layouts/default.html" | |
| "_includes/header.html" | |
| "_includes/footer.html" | |
| "_i18n/en.yml" | |
| "_i18n/ko.yml" | |
| "assets/css/style.css" | |
| "index.md" | |
| ) | |
| for file in "${FILES[@]}"; do | |
| if [ -f "$file" ]; then | |
| echo "✓ $file" | |
| else | |
| echo "✗ Missing: $file" | |
| exit 1 | |
| fi | |
| done | |
| echo "All required files present!" | |
| - name: Check directory structure | |
| run: | | |
| echo "Checking directory structure..." | |
| DIRS=( | |
| "guides/en" | |
| "guides/ko" | |
| "community/en" | |
| "community/ko" | |
| "about/en" | |
| "about/ko" | |
| ) | |
| for dir in "${DIRS[@]}"; do | |
| if [ -d "$dir" ]; then | |
| echo "✓ $dir/" | |
| else | |
| echo "✗ Missing: $dir/" | |
| exit 1 | |
| fi | |
| done | |
| echo "All required directories present!" |