chore: introduce github-ci builds

This commit is contained in:
Richard Macias
2026-02-14 15:06:22 -06:00
parent 3851aff4c3
commit b434cb8628
2 changed files with 74 additions and 0 deletions

64
.github/workflows/ci.yml vendored Normal file
View File

@@ -0,0 +1,64 @@
name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
validate:
name: Validate
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.11"
- name: Validate applications.json
run: make validate
test:
name: Live Test
runs-on: ubuntu-latest
needs: validate
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.11"
- name: Test app configs resolve to APKs
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: make test
check-generated:
name: Check Generated Files
runs-on: ubuntu-latest
needs: validate
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.11"
- name: Run make release
run: make release
- name: Check for uncommitted changes
run: |
if [ -n "$(git diff --name-only)" ]; then
echo "Generated files are out of date. Run 'make release' 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."