29 lines
1.4 KiB
YAML
29 lines
1.4 KiB
YAML
# Orbit's release gate on every push (8 November 2026). Runs where the git server has an Actions runner; the same
|
|
# checks run locally with tools/verify.sh. GitHub Actions reads the same syntax, for the public repository later.
|
|
name: release-gate
|
|
on: [push, pull_request]
|
|
jobs:
|
|
verify:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: actions/setup-java@v4
|
|
with: { distribution: temurin, java-version: '17' }
|
|
- uses: android-actions/setup-android@v3
|
|
# Its default asks for the old 'tools' package, which the SDK no longer has (first run, 9 November 2026).
|
|
# Gradle fetches the platform and build tools the project names.
|
|
with: { packages: 'platform-tools' }
|
|
- name: Build, unit tests (provider contract suite included) and lint
|
|
run: ORBIT_TOOLING=/nonexistent tools/verify.sh
|
|
- name: Which tests failed
|
|
if: failure()
|
|
run: |
|
|
grep -l "<failure" android/app/build/test-results/testDebugUnitTest/*.xml 2>/dev/null | while read f; do
|
|
python3 - "$f" <<'PY' || true
|
|
import sys, xml.etree.ElementTree as ET
|
|
for case in ET.parse(sys.argv[1]).getroot().iter("testcase"):
|
|
for f in case.findall("failure"):
|
|
print(case.get("classname"), case.get("name"), "::", (f.get("message") or "")[:300])
|
|
PY
|
|
done
|