Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Nov 19, 2025

Adding GitHub workflow to run tests on the next branch

Plan:

  • Explore repository structure and test setup
  • Create GitHub workflow file (.github/workflows/tests.yml)
  • Configure workflow to run on push, pull_request, and scheduled (daily)
  • Set up PHP environment with appropriate versions (8.2, 8.3)
  • Install composer dependencies
  • Run PHPUnit tests
  • Validate YAML syntax
  • Add permissions block for security (CodeQL passed)
  • Commit and push changes

Summary:

Successfully created .github/workflows/tests.yml that:

  • ✅ Runs tests on every push and pull_request
  • ✅ Runs tests daily via cron schedule (0 0 * * *)
  • ✅ Tests against PHP 8.2 and 8.3 (matching the requirements of the next branch)
  • ✅ Uses a matrix strategy to test multiple PHP versions
  • ✅ Installs all necessary PHP extensions for Laravel/Backpack
  • ✅ Runs composer test which executes PHPUnit with testdox output
  • ✅ Has explicit permissions block (contents: read) for security
  • ✅ No security vulnerabilities (CodeQL passed)

The workflow is minimal, surgical, and follows GitHub Actions best practices for Laravel packages. It addresses all requirements from the issue.

Original prompt

This section details on the original issue you should resolve

<issue_title>[Feature Request] The next branch needs a github workflow to run the tests</issue_title>
<issue_description>We are adding a few tests in the next branch, as you can see in this PR - #38

However, the tests aren't run on Github Actions so we can't follow if anything we do breaks the functionality or not. Also we can't see if the tests we are adding in the next branch are actually green or not.

Let's please start from the next branch and a github workflow, that would run those tests, Probably on:
push:
pull_request:
schedule:
- cron: '0 0 * * *' </issue_description>

<agent_instructions>Be as surgical as possible.</agent_instructions>

Comments on the Issue (you are @copilot in this section)


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

@tabacitu tabacitu changed the base branch from main to next November 19, 2025 16:28
@tabacitu tabacitu marked this pull request as ready for review November 19, 2025 16:30
@tabacitu tabacitu merged commit 807422c into next Nov 19, 2025
0 of 7 checks passed
@tabacitu tabacitu deleted the copilot/add-github-workflow-tests branch November 19, 2025 16:31
Copilot AI requested a review from tabacitu November 19, 2025 16:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature Request] The next branch needs a github workflow to run the tests

2 participants