From dd0dc9f1456235221aa3b177557268c9e1a2fbc8 Mon Sep 17 00:00:00 2001 From: peppa-bot Date: Mon, 23 Nov 2026 05:16:58 +0000 Subject: [PATCH] =?UTF-8?q?PCHK-3:=20CI=20=E2=80=94=20.gitea/workflows/ci.?= =?UTF-8?q?yml=20=D0=B8=20peppa-check.sh=20(=D0=B2=20=D0=BE=D1=81=D0=BD?= =?UTF-8?q?=D0=BE=D0=B2=D0=BD=D0=BE=D0=B9=20=D0=B2=D0=B5=D1=82=D0=BA=D0=B5?= =?UTF-8?q?=20=D0=B8=D1=85=20=D0=BD=D0=B5=D1=82)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Шаблонный CI не попал в репозиторий при бутстрапе, поэтому проверки PR не стартовали. Workflow запускает install/lint/typecheck/test/build из .peppa/project.json → checks. Co-Authored-By: Claude Opus 5.5 --- .gitea/peppa-check.sh | 13 +++++++++++++ .gitea/workflows/ci.yml | 23 +++++++++++++++++++++++ 2 files changed, 36 insertions(+) create mode 100755 .gitea/peppa-check.sh create mode 100644 .gitea/workflows/ci.yml diff --git a/.gitea/peppa-check.sh b/.gitea/peppa-check.sh new file mode 100755 index 0000000..b9b17d0 --- /dev/null +++ b/.gitea/peppa-check.sh @@ -0,0 +1,13 @@ +#!/usr/bin/env bash +# Запуск одной проверки из .peppa/project.json → checks (install|lint|typecheck|test|build). +# Нет команды — шаг пропускается. Тот же скрипт используют CI и агенты локально. +set -euo pipefail +name="${1:?usage: peppa-check.sh }" +cd "$(dirname "$0")/.." +cmd="$(node -e 'const c=(require("./.peppa/project.json").checks||{})[process.argv[1]];process.stdout.write(c||"")' "$name")" +if [ -z "$cmd" ]; then + echo "peppa-check: '$name' не настроен — пропуск" + exit 0 +fi +echo "peppa-check: $name → $cmd" +bash -c "$cmd" diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml new file mode 100644 index 0000000..1d9f557 --- /dev/null +++ b/.gitea/workflows/ci.yml @@ -0,0 +1,23 @@ +name: ci +on: + pull_request: + push: + branches: [main] +jobs: + checks: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: 22 + - name: install + run: bash .gitea/peppa-check.sh install + - name: lint + run: bash .gitea/peppa-check.sh lint + - name: typecheck + run: bash .gitea/peppa-check.sh typecheck + - name: test + run: bash .gitea/peppa-check.sh test + - name: build + run: bash .gitea/peppa-check.sh build