Skip to content

Update workflow to support multiple OS environments#702

Open
fadrian06 wants to merge 8 commits into
masterfrom
ci-add-multiple-OSs
Open

Update workflow to support multiple OS environments#702
fadrian06 wants to merge 8 commits into
masterfrom
ci-add-multiple-OSs

Conversation

@fadrian06

Copy link
Copy Markdown
Contributor

This pull request updates the test workflow configuration to expand the operating systems used in the test matrix. Now, tests will run on Ubuntu, Windows, and macOS environments for each PHP version.

Test matrix improvements:

  • Added an os matrix to the workflow, so tests are now run on ubuntu-latest, windows-latest, and macos-latest for each PHP version. Updated the runs-on field to use the matrix value. (.github/workflows/test.yml)

Copilot AI review requested due to automatic review settings June 22, 2026 14:32

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR updates the GitHub Actions test workflow to expand CI coverage across multiple operating systems, ensuring the FlightPHP core test suite is exercised on Ubuntu, Windows, and macOS for each configured PHP version.

Changes:

  • Add an os entry to the workflow matrix (Ubuntu/Windows/macOS).
  • Switch runs-on to use the matrix-selected OS value.

Comment thread .github/workflows/test.yml Outdated
…newlines

On Windows, PHP_EOL is \\r\\n but the CLI library writes \\n to the
output file. The removeColors() helper converts \\r\\n→\\n, so using
str_replace(PHP_EOL, '') afterwards failed to strip those \\n on
Windows, leaving newlines in the haystack while the needle had none.

Fix: replace both \\r\\n and \\n so all newline variants are stripped
from both needle and haystack before comparison, making the test
platform-independent.
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.

3 participants