forked from mtusi2026/mtusi2026lab6
35 lines
992 B
YAML
35 lines
992 B
YAML
name: Lab 6 smoke
|
|
|
|
on:
|
|
push:
|
|
pull_request:
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
compose-smoke:
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 20
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: Build and start the Lab 6 stand
|
|
run: |
|
|
python3 scripts/bootstrap.py
|
|
docker compose --env-file .env config --quiet
|
|
docker compose --env-file .env up -d --build --wait --wait-timeout 180
|
|
- name: Check the contract and run the public smoke
|
|
run: |
|
|
make check
|
|
make test BASE_URL=http://127.0.0.1:8080
|
|
- name: Check rules and provisioned telemetry
|
|
run: |
|
|
docker compose exec -T prometheus promtool check config /etc/prometheus/prometheus.yml
|
|
python3 student-tests/observability.py correlation
|
|
- name: Show service state on failure
|
|
if: failure()
|
|
run: docker compose ps --all
|
|
- name: Stop containers
|
|
if: always()
|
|
run: docker compose down
|