Skip to content

ci(4.x): run tests, changelog and Rector against 4.x - #44

Merged
webard merged 1 commit into
4.xfrom
ci/fix-4x-workflows
Nov 2, 2026
Merged

webard merged 1 commit into
4.xfrom
ci/fix-4x-workflows

Conversation

@webard

@webard webard commented Nov 2, 2026

Copy link
Copy Markdown
Contributor
  • Tests: run-tests.yml only triggered on v3, so 4.x had no test CI. Now triggers on 4.x.
  • Changelog: update-changelog.yml checked out main (doesn't exist) and pushed to v3, so the v4.0.2 release run failed. Now uses the release's target_commitish.
  • Rector: adds declare(strict_types=1) to the five files it flagged.

Locally on Laravel 12.70: 50 tests pass, PHPStan, Pint and Rector clean.

Note: CHANGELOG.md on 4.x stops at 2.0.0; v4.0.0–v4.0.2 entries are not backfilled here.

- run-tests only triggered on v3, so 4.x had no test CI at all.
- update-changelog checked out main (absent) and pushed to v3; use the
  release's target branch instead.
- add declare(strict_types=1) to the five files Rector flagged.
Copilot AI balanced review requested due to automatic review settings November 2, 2026 14:35
@webard
webard merged commit b891766 into 4.x Nov 2, 2026
11 checks passed
@webard
webard deleted the ci/fix-4x-workflows branch November 2, 2026 14:39

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟡 Changes recommended

The changelog workflow may check out or push to the wrong branch because target_commitish can be unrelated to an existing tag or be a commit SHA.

1 open issue
What changed in this PR

This PR updates CI for the 4.x maintenance branch and adds strict typing declarations required by Rector.

Changes:

  • Runs tests for pushes and pull requests targeting 4.x.
  • Uses the release’s target_commitish for changelog checkout and push.
  • Adds declare(strict_types=1) to five PHP files.
File Description
tests/​src/​Models/​SpatiePost.php Enables strict typing in the Spatie test model.
tests/​src/​Models/​AstrotomicPostTranslation.php Enables strict typing in the translation test model.
tests/​src/​Models/​AstrotomicPost.php Enables strict typing in the Astrotomic test model.
tests/​Pest.php Enables strict typing in Pest setup.
src/​Forms/​Component/​Translations/​Tab.php Enables strict typing in the translation tab component.
.github/​workflows/​update-changelog.yml Uses the release target for checkout and changelog commits.
.github/​workflows/​run-tests.yml Changes test triggers from v3 to 4.x.

Review effort: Balanced

uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
ref: main
ref: ${{ github.event.release.target_commitish }}
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.

2 participants