forked from mtusi2026/mtusi2026lab2
This commit is contained in:
+11
-13
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user