fix: address review comments
CI / verify (pull_request) Successful in 4m16s

This commit is contained in:
2026-09-25 11:46:02 +03:00
parent 09779a53ae
commit 6d5ac9e81d
26 changed files with 683 additions and 666 deletions
+11 -13
View File
@@ -4,7 +4,7 @@ on:
pull_request:
branches: [main]
push:
branches: [main, solution/bvt2303-plastinin]
branches: [main]
workflow_dispatch:
concurrency:
@@ -16,8 +16,11 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 20
env:
COMPOSE_FILE: compose.ci.yaml
COMPOSE_PROJECT_NAME: mtusi2026lab2-${{ github.run_id }}
API_BIND_ADDRESS: 127.0.0.1:0
SWAGGER_BIND_ADDRESS: 127.0.0.1:0
PROMETHEUS_BIND_ADDRESS: 127.0.0.1:0
GRAFANA_BIND_ADDRESS: 127.0.0.1:0
steps:
- name: Checkout exact commit
run: |
@@ -64,17 +67,12 @@ jobs:
docker network connect "$network" "$HOSTNAME"
printf '%s\n' "$network" > .ci-network
- name: Public smoke
run: make test BASE_URL=http://api:8080
- name: PostgreSQL and Valkey integration tests
run: docker compose --profile tests run --rm --build tests
- name: Dependency outage recovery
run: go run ./cmd/dependencycheck -base-url=http://api:8080
- name: Persistence test
run: make test-persistence ACTION_SCRIPT=scripts/restart.sh BASE_URL=http://api:8080
- name: Integration checks
run: |
make test BASE_URL=http://api:8080
docker compose --profile tests run --rm --build tests
go run ./cmd/dependencycheck -base-url=http://api:8080
make test-persistence ACTION_SCRIPT=scripts/restart.sh BASE_URL=http://api:8080
- name: Container logs
if: failure()