forked from mtusi2026/mtusi2026lab6
Добавить наблюдаемость и проверки отказов для ЛР 6
This commit is contained in:
@@ -12,5 +12,22 @@ jobs:
|
||||
python-version: '3.12'
|
||||
- run: python -m pip install -r requirements-dev.txt
|
||||
- run: make check validate PYTHON=python
|
||||
# This job validates the skeleton, not a student solution.
|
||||
# Add build, readiness and make test in a separate application job.
|
||||
application-smoke:
|
||||
runs-on: ubuntu-24.04
|
||||
timeout-minutes: 15
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Build and start the lab
|
||||
run: |
|
||||
./scripts/bootstrap.sh
|
||||
docker compose config --quiet
|
||||
docker compose up -d --build
|
||||
./scripts/wait_ready.sh 180
|
||||
- name: Check the application with telemetry enabled
|
||||
run: |
|
||||
curl --fail --retry 15 --retry-delay 2 --retry-connrefused http://localhost:3000/api/health
|
||||
make test
|
||||
- if: failure()
|
||||
run: docker compose ps --all
|
||||
- if: always()
|
||||
run: docker compose down
|
||||
|
||||
Reference in New Issue
Block a user