hello-world/.gitea/workflows/ci.yml
Peppa 380f167e4d
All checks were successful
ci / checks (push) Successful in 3s
deploy / deploy (push) Successful in 3s
Bootstrap Hello World from Peppa template
2026-11-17 14:29:09 +05:00

39 lines
1.7 KiB
YAML
Raw Permalink 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 проекта Пеппы (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