-
-
Notifications
You must be signed in to change notification settings - Fork 12
feat(ci): add Rector with dry-run CI check #263
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
Draft
rossaddison
wants to merge
16
commits into
php-testo:1.x
Choose a base branch
from
rossaddison:feat/233-rector-ci
base: 1.x
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from 11 commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
9e30d5e
fix(infection): skip mutations to #[TestInline] attribute arguments (…
rossaddison 05a3e77
fix(phpunit-mirror): add .placeholder.php so EmptyRun stub directory …
rossaddison ce50f4a
fix(infection): re-enable @default mutators alongside global-ignoreSo…
rossaddison 4c1af2a
feat(error-handler): add ErrorHandlerInterceptor plugin (#73)
rossaddison 3bb8351
feat(ci): add Rector with dry-run CI check (#233)
rossaddison d2a0913
style(cs): apply php-cs-fixer
github-actions[bot] 622ad83
fix(output): widen Style::dim to string; fix ChannelRenderer::formatT…
rossaddison 69913a9
fix(rector): revert two false-positive dead-code removals; skip affec…
rossaddison 3d8475d
test(coverage): add tests for Formatter summary/formatRun and non-sta…
rossaddison f1e7115
test(coverage): cover State holdEvents path and DataProviderIntercept…
rossaddison 40437b7
test(coverage): cover Application wrong-type-config path; ignore unre…
rossaddison 3850548
Potential fix for pull request finding
rossaddison f9c71fe
fix: preserve timezone-aware channel time formatting and restore Filt…
rossaddison fa09e6e
Merge branch '1.x' into feat/233-rector-ci
rossaddison 7cbe227
Update ChannelRenderer.php
rossaddison 107280e
Merge branch '1.x' into feat/233-rector-ci
rossaddison File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,50 @@ | ||
| name: Rector | ||
|
|
||
| on: | ||
| push: | ||
| paths: | ||
| - 'core/**' | ||
| - 'plugin/**' | ||
| - 'bridge/**' | ||
| - 'rector.php' | ||
| - 'composer.json' | ||
| - 'composer.lock' | ||
| - '.github/workflows/rector.yml' | ||
| pull_request: | ||
| paths: | ||
| - 'core/**' | ||
| - 'plugin/**' | ||
| - 'bridge/**' | ||
| - 'rector.php' | ||
| - 'composer.json' | ||
| - 'composer.lock' | ||
| - '.github/workflows/rector.yml' | ||
|
|
||
| jobs: | ||
| rector: | ||
| runs-on: ubuntu-latest | ||
| name: Rector | ||
|
|
||
| steps: | ||
|
|
||
| - name: Checkout | ||
| uses: actions/checkout@v7 | ||
|
|
||
| # The split sub-packages pin testo/testo; in CI the root is a detached | ||
| # commit (dev-<sha>), so its version must be declared explicitly. | ||
| - name: Resolve root package version | ||
| run: echo "COMPOSER_ROOT_VERSION=$(jq -r '.["."]' resources/version.json)" >> "$GITHUB_ENV" | ||
|
|
||
| - name: Setup PHP | ||
| uses: shivammathur/setup-php@v2 | ||
| with: | ||
| php-version: 8.4 | ||
| coverage: none | ||
|
|
||
| - name: Install Composer dependencies | ||
| uses: ramsey/composer-install@v3 | ||
| with: | ||
| dependency-versions: highest | ||
|
|
||
| - name: Run Rector | ||
| run: composer rector:ci |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.