Files
antigravity/.gitea/workflows/agile-squad.yaml
2025-12-19 19:45:34 +02:00

95 lines
3.5 KiB
YAML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
name: Agile Squad Operations
run-name: 🚀 Antigravity Daily Cycle
on:
schedule:
# UTC Time: 07:00(09 UA), 11:00(13 UA), 15:00(17 UA), 19:00(21 UA)
- cron: '0 7,11,15,19 * * *'
workflow_dispatch:
jobs:
# === АГЕНТ 1: РАНКОВИЙ ЗБІР (STEWARDSHIP) ===
standup-check:
runs-on: ubuntu-latest
container:
image: node:16-bullseye
steps:
- name: 📥 Check out repository
uses: actions/checkout@v3
- name: 🛠️ Setup Docker Tools
run: |
apt-get update && apt-get install -y curl tar
curl -fsSL https://download.docker.com/linux/static/stable/x86_64/docker-26.1.3.tgz -o docker.tgz
tar xzvf docker.tgz && mv docker/docker /usr/local/bin/ && chmod +x /usr/local/bin/docker
- name: 🌅 Run Standup Logic
run: |
# Запускаємо Python-код з аргументом --task standup
# Він перевірить диск, змінні оточення і запише статус у JSON
docker compose run --rm antigravity_core python main.py --task standup
# === АГЕНТ 2: ОСНОВНА РОБОТА (VALUE) ===
heavy-worker:
needs: standup-check
runs-on: ubuntu-latest
container:
image: node:16-bullseye
steps:
- name: 📥 Check out repository
uses: actions/checkout@v3
- name: 🛠️ Setup Docker Tools
run: |
apt-get update && apt-get install -y curl tar
curl -fsSL https://download.docker.com/linux/static/stable/x86_64/docker-26.1.3.tgz -o docker.tgz
tar xzvf docker.tgz && mv docker/docker /usr/local/bin/ && chmod +x /usr/local/bin/docker
- name: 🔨 Run Main Task
run: |
# Запускаємо Worker. Він перевірить, чи успішним був стендап (через JSON)
docker compose run --rm antigravity_core python main.py --task worker
# === АГЕНТ 3: АУДИТОР (QUALITY) ===
qa-auditor:
needs: heavy-worker
runs-on: ubuntu-latest
container:
image: node:16-bullseye
steps:
- name: 📥 Check out repository
uses: actions/checkout@v3
- name: 🛠️ Setup Docker Tools
run: |
apt-get update && apt-get install -y curl tar
curl -fsSL https://download.docker.com/linux/static/stable/x86_64/docker-26.1.3.tgz -o docker.tgz
tar xzvf docker.tgz && mv docker/docker /usr/local/bin/ && chmod +x /usr/local/bin/docker
- name: 🛡️ Run QA Audit
run: |
# Запускаємо аудит через main.py
docker compose run --rm antigravity_core python main.py --task audit
# === АГЕНТ 4: РЕПОРТЕР (TRANSPARENCY) ===
scrum-report:
if: always()
needs: [standup-check, heavy-worker, qa-auditor]
runs-on: ubuntu-latest
container:
image: node:16-bullseye
steps:
- name: 📥 Check out repository
uses: actions/checkout@v3
- name: 🛠️ Setup Docker Tools
run: |
apt-get update && apt-get install -y curl tar
curl -fsSL https://download.docker.com/linux/static/stable/x86_64/docker-26.1.3.tgz -o docker.tgz
tar xzvf docker.tgz && mv docker/docker /usr/local/bin/ && chmod +x /usr/local/bin/docker
- name: 📢 Generate Report
run: |
# Репортер збере всі статуси з JSON і виведе звіт
docker compose run --rm antigravity_core python main.py --task report