Skip to content

Update GitHub Actions workflows#402

Merged
Keith-wright merged 4 commits intomasterfrom
update-github-actions-workflows
Mar 24, 2026
Merged

Update GitHub Actions workflows#402
Keith-wright merged 4 commits intomasterfrom
update-github-actions-workflows

Conversation

@Keith-wright
Copy link
Copy Markdown
Contributor

  • `actions/checkout@v2`/`@v3` → `@v4` across all three workflows
  • Replace archived `actions/create-release@v1` with `softprops/action-gh-release@v2.6.1` in `gh-release.yml`
  • Add PHP 8.5 to test matrix in `test.yml`

- actions/checkout@v2/v3 -> @v4 across all workflows
- Replace deprecated actions/create-release@v1 with softprops/action-gh-release@v2.6.1
- Add PHP 8.5 to test matrix
echo "VERSION=$NEW_VERSION" >> $GITHUB_ENV
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4
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.

v6 is latest

Copy link
Copy Markdown
Member

@aonemd aonemd left a comment

Choose a reason for hiding this comment

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

Tests are not running. You need to update the all the workflows' runner instance to ubuntu-latest

- actions/checkout@v4/v3 → @v6 across all three workflows
- ubuntu-20.04 → ubuntu-latest in test.yml
The Pusher Channels API requires event data to be a JSON object. Passing
a raw PHP string causes json_encode to produce a bare JSON string (e.g.
"Test string"), which the API rejects with "Invalid JSON provided (could
not parse)". Changed test data from 'Test string' to
['message' => 'Test string'] and renamed testStringPush to testEventPush
to reflect what each test is actually asserting.
new HandlerStack() skips Guzzle's default middleware (including
prepareBody), causing requests to be malformed and rejected by the API.
Changed to HandlerStack::create() which includes the full default
middleware stack while still allowing the custom increment middleware to
be pushed on top.
@Keith-wright
Copy link
Copy Markdown
Contributor Author

Thanks @GrahamCampbell for the catch on actions/checkout — updated to v6. Tests are now passing @aonemd.

@Keith-wright Keith-wright merged commit 301168e into master Mar 24, 2026
16 checks passed
@aonemd aonemd deleted the update-github-actions-workflows branch March 24, 2026 14:59
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.

4 participants