name: CI on: push: branches: [main] pull_request: branches: [main] jobs: ci: name: Validate, Test, Build runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - uses: actions/setup-python@v5 with: python-version: "3.11" - name: Validate run: python scripts/validate-json.py src/applications.json - name: Test env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: python scripts/test-apps.py - name: Generate run: | python scripts/normalize-json.py src/applications.json python scripts/generate-table.py src/applications.json ./pages/table.md python scripts/generate-readme.py ./pages/header.md ./pages/table.md ./pages/faq.md ./pages/footer.md python scripts/minify-json.py src/applications.json obtainium-emulation-pack-latest.json --variant standard python scripts/minify-json.py src/applications.json obtainium-emulation-pack-dual-screen-latest.json --variant dual-screen - name: Check generated files are up to date run: | if [ -n "$(git diff --name-only)" ]; then echo "Generated files are out of date. Run 'just build' and commit the results." echo "" echo "Changed files:" git diff --name-only echo "" git diff --stat exit 1 fi echo "All generated files are up to date."