name: solution on: [push, pull_request] permissions: contents: read jobs: application: runs-on: ubuntu-24.04 timeout-minutes: 20 steps: - uses: actions/checkout@v4 - name: Fresh stack, contract and public API run: | make up make check make test - name: Real PostgreSQL and race detector run: make test-race - name: Student HTTP cases run: python3 student-tests/integration.py --base-url http://localhost:8083 - name: Persistence of existing session and data run: make test-persistence ACTION_SCRIPT=scripts/restart.sh - name: API failover through LB run: make test-failover ACTION_SCRIPT=scripts/stop-one.sh - name: Safe diagnostics if: always() run: docker compose logs --tail 100 > evidence/ci-containers.txt - uses: actions/upload-artifact@v4 if: always() with: name: solution-evidence path: evidence/ - name: Dispose this CI-only stack if: always() run: docker compose --profile verify down -v --remove-orphans