Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Introduce Phing as build tool for code quality pipeline

Đang mở
#20 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
42/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Ít trao đổi
Công nghệ
php
Lĩnh vực
build-system, testing

Hướng nghiên cứu

Start by reading the existing Makefile and GitHub Actions workflow, then check the Composer dependencies and available PHPCS, PHPStan, and PHPUnit commands. Decide how Phing should fit the existing build setup and whether the open questions need maintainer input. Done means a documented Phing setup that runs the agreed quality checks consistently.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

enhancement good first issue

Context

Currently there is no automated build pipeline for code quality checks. Running lint, static analysis and tests manually is error-prone and inconsistent across contributors.

Proposal

Introduce Phing as the build tool to orchestrate tasks like:

  • PHP_CodeSniffer (PHPCS) for coding style
  • PHPStan for static analysis
  • PHPUnit tests

A build.xml could look like:

<project name="openapi-php-sdk" default="check">
  <target name="check" depends="lint,test"/>

  <target name="lint">
    <exec command="./vendor/bin/phpcs src/ --standard=PSR12" passthru="true" checkreturn="true"/>
  </target>

  <target name="test">
    <exec command="./vendor/bin/phpunit" passthru="true" checkreturn="true"/>
  </target>
</project>

Open questions

  • Should we enforce PSR-12 strictly or allow some exceptions (e.g. trailing commas)?
  • Do we integrate Phing into the existing Makefile or replace it entirely?
  • Should Phing targets also run inside the GitHub Actions workflow?
Ngôn ngữ chính
PHP
Star
20
Fork
3
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của openapi/openapi-php-sdk

Tất cả issue của openapi/openapi-php-sdk

Issue tương tự

Thêm issue về PHP

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.