-
Notifications
You must be signed in to change notification settings - Fork 0
62 lines (47 loc) · 1.39 KB
/
ci.yml
File metadata and controls
62 lines (47 loc) · 1.39 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
name: CI
on:
push:
branches: [main, develop]
pull_request:
branches: [main, develop]
jobs:
quality:
name: Quality Pipeline
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: shivammathur/setup-php@v2
with:
php-version: '8.4'
coverage: pcov
- name: Install dependencies
run: composer install --no-interaction --prefer-dist --optimize-autoloader
- name: Initialize devkit
run: php bin/kcode init
- name: Code style check
run: php bin/kcode cs:fix --check
- name: Static analysis
run: php bin/kcode analyse
- name: Tests
run: php bin/kcode test --coverage
build-phar:
name: PHAR Build Smoke Test
runs-on: ubuntu-latest
needs: quality
steps:
- uses: actions/checkout@v4
- uses: shivammathur/setup-php@v2
with:
php-version: '8.4'
extensions: phar, zlib
ini-values: phar.readonly=0
- name: Install dependencies
run: composer install --no-interaction --prefer-dist --optimize-autoloader --no-scripts
- name: Compile PHAR
run: php -d phar.readonly=0 bin/build-phar.php
- name: Verify PHAR
run: |
php build/kcode.phar --version
php build/kcode.phar --help
php build/kcode.phar init
echo "✓ PHAR smoke test passed"