# 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