-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (39 loc) · 1.54 KB
/
ci.yml
File metadata and controls
48 lines (39 loc) · 1.54 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
name: CI
# ARFA 1.3 / KaririCode Spec V4.0 — Unified CI Pipeline
# Runs on every push and PR targeting main or develop.
# Full pipeline: cs-fixer → phpstan (L9) → psalm → phpunit (pcov)
# Zero tolerance: any tool failure blocks the merge.
on:
push:
branches: [main, develop]
pull_request:
branches: [main, develop]
workflow_dispatch:
jobs:
quality:
name: Quality Pipeline (ARFA 1.3)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
# PHP 8.4 + pcov (mandatory driver per ARFA 1.3 §Testing)
- uses: shivammathur/setup-php@v2
with:
php-version: '8.4'
extensions: mbstring, xml, openssl
coverage: pcov
# Pure dependency install — no scripts to avoid environment pollution
- name: Install dependencies
run: composer install --no-interaction --prefer-dist --no-progress --no-scripts
# Bootstrap kcode.phar from the official KaririCode release
- name: Install kcode (KaririCode Devkit)
run: |
wget -q https://github.com/KaririCode-Framework/kariricode-devkit/releases/latest/download/kcode.phar
chmod +x kcode.phar
sudo mv kcode.phar /usr/local/bin/kcode
# Generate .kcode/ configs: phpunit.xml.dist, phpstan.neon, psalm.xml, etc.
- name: Initialize devkit (.kcode/ generation)
run: kcode init
# cs-fixer → phpstan (L9) → psalm → phpunit
# Exit code ≠ 0 fails the job (zero-tolerance policy)
- name: Run full quality pipeline
run: kcode quality