Skip to content

Update GitHub Actions workflows to use php-forge actions and remove unused paths. #6

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 13, 2025

Conversation

terabytesoftw
Copy link
Member

@terabytesoftw terabytesoftw commented Jul 13, 2025

Q A
Is bugfix? ✔️
New feature?
Breaks BC?

Summary by CodeRabbit

  • Chores
    • Updated GitHub Actions workflows to use new reusable workflow sources.
    • Simplified workflow configurations by removing explicit operating system and PHP version settings.
    • Passed a secret for code coverage reporting in test workflows.
    • Adjusted file patterns for workflow triggers to improve automation accuracy.
    • Added a new workflow for coding standards checks.

Copy link

coderabbitai bot commented Jul 13, 2025

Walkthrough

The GitHub Actions workflows were updated to use reusable workflows from the php-forge/actions repository instead of yiisoft/actions, with explicit OS and PHP version parameters removed. File ignore patterns in triggers were adjusted, and a new workflow for Easy Coding Standard (ECS) checks was added, referencing an external workflow.

Changes

File(s) Change Summary
.github/workflows/build.yml Updated to use php-forge/actions for PHPUnit; removed OS/PHP version specs; added CODECOV_TOKEN secret.
.github/workflows/dependency-check.yml Switched to php-forge/actions for composer-require-checker; removed OS/PHP version specs; updated paths-ignore.
.github/workflows/static.yml Removed OS/PHP version specs for phpstan job; updated paths-ignore.
.github/workflows/ecs.yml Added new workflow for ECS checks using external reusable workflow; set up path ignore rules.

Sequence Diagram(s)

sequenceDiagram
    participant GitHub
    participant Workflow (build/dependency-check/static/ecs)
    participant php-forge/actions

    GitHub->>Workflow (build/dependency-check/static/ecs): Trigger on push or PR
    Workflow (build/dependency-check/static/ecs)->>php-forge/actions: Reuse workflow (phpunit, composer-require-checker, phpstan, ecs)
    php-forge/actions-->>Workflow (build/dependency-check/static/ecs): Execute job steps
    Workflow (build/dependency-check/static/ecs)-->>GitHub: Report results
Loading

Poem

🐇
Hopping through the workflows new,
Swapping sources, secrets too!
ECS arrives to scan the code,
While old configs lighten their load.
With php-forge now in play,
The CI garden’s bright today!
🍃✨


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Explain this complex logic.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai explain this code block.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and explain its main purpose.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@terabytesoftw terabytesoftw added the bug Something isn't working label Jul 13, 2025
Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 3

🧹 Nitpick comments (1)
.github/workflows/ecs.yml (1)

1-17: Consider adding concurrency to prevent redundant ECS runs on rapid pushes

Example:

concurrency:
  group: ecs-${{ github.ref }}
  cancel-in-progress: true

This keeps the queue clean and saves CI minutes.

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 8e61f26 and 6b7cef6.

📒 Files selected for processing (4)
  • .github/workflows/build.yml (1 hunks)
  • .github/workflows/dependency-check.yml (1 hunks)
  • .github/workflows/ecs.yml (1 hunks)
  • .github/workflows/static.yml (0 hunks)
💤 Files with no reviewable changes (1)
  • .github/workflows/static.yml
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
  • GitHub Check: phpunit / PHP 8.1-windows-latest
🔇 Additional comments (2)
.github/workflows/build.yml (2)

26-28: Dropping the OS/PHP matrix narrows test coverage—verify this is intentional

The previous workflow ran on multiple OSes (ubuntu, windows) and PHP versions (8.1–8.3). The new reusable workflow’s defaults may test a single combo only. Confirm you still get the coverage you need; otherwise pass an explicit matrix via with: or keep the former matrix YAML.


27-28: Ensure CODECOV_TOKEN is populated in repo secrets

The job will silently fail to upload coverage if the secret is absent or mis-named. Double-check the secret exists in GitHub → Settings → Secrets & variables.

@terabytesoftw terabytesoftw merged commit 95c0759 into main Jul 13, 2025
25 checks passed
@terabytesoftw terabytesoftw deleted the fix-mini-2 branch July 13, 2025 10:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy