template/.gitea/workflows/ci.yml
peppa-bot d7a94d0261
All checks were successful
ci / checks (push) Successful in 6s
deploy / deploy (push) Successful in 5s
Update Peppa template (e694f4c3)
2026-11-23 12:05:36 +05:00

39 lines
1.7 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.

# CI проекта FORGE (PEP-57). Команды проверок — в .peppa/project.json → "checks";
# под стек проекта этот файл менять не нужно. Изменение этого файла или "checks"
# PM видит отдельно, и такой PR не мержится автоматически.
name: ci
on:
pull_request:
push:
branches: [main]
env:
PEPPA_SHA: ${{ github.event.pull_request.head.sha || github.sha }}
PEPPA_BRANCH: ${{ github.head_ref || github.ref_name }}
PEPPA_PR: ${{ github.event.pull_request.number }}
PEPPA_CI_SECRET: ${{ secrets.PEPPA_CI_SECRET }}
GITEA_TOKEN: ${{ secrets.GITHUB_TOKEN }}
jobs:
checks:
# Раннер с docker.sock хоста: только ветки этого репозитория, PR из форков не запускаются.
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository
runs-on: peppa-trusted
steps:
- uses: actions/checkout@v4
with:
ref: ${{ env.PEPPA_SHA }}
- id: install
name: install
run: bash .gitea/peppa-check.sh install
- name: lint
if: (success() || failure()) && steps.install.outcome == 'success'
run: bash .gitea/peppa-check.sh lint
- name: typecheck
if: (success() || failure()) && steps.install.outcome == 'success'
run: bash .gitea/peppa-check.sh typecheck
- name: test
if: (success() || failure()) && steps.install.outcome == 'success'
run: bash .gitea/peppa-check.sh test
- name: build
if: (success() || failure()) && steps.install.outcome == 'success'
run: bash .gitea/peppa-check.sh build