Skip to content
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

GH Actions: show deprecations when linting & lint against next PHP version #225

Merged
merged 2 commits into from
Aug 26, 2024

Conversation

jrfnl
Copy link
Member

@jrfnl jrfnl commented Aug 22, 2024

Proposed Changes

GH Actions: show deprecations when linting

While rare, there are some deprecations which PHP can show when a file is being linted.
By default these are ignored by PHP-Parallel-Lint.

Apparently though, there is an option to show them (wasn't documented until recently), so let's turn that option on.

GH Actions: also lint against next PHP version

The PHP lint job currently checks all PHP files for parse/compile errors against a limited set of PHP versions, including the high/low versions.

It did not run the linter against the next (upcoming) PHP version yet.

This has now been added with the 'nightly' alias, which means that the version will automatically roll through to the next PHP version when a new PHP branchs gets cut, without us needing to manually maintain this.

Also note that the build against nightly is allowed to fail.

While rare, there are some deprecations which PHP can show when a file is being linted.
By default these are ignored by PHP-Parallel-Lint.

Apparently though, there is an option to show them (wasn't documented until recently), so let's turn that option on.
The PHP lint job currently checks all PHP files for parse/compile errors against a limited set of PHP versions, including the high/low versions.

It did not run the linter against the _next_ (upcoming) PHP version yet.

This has now been added with the `'nightly'` alias, which means that the version will automatically roll through to the next PHP version when a new PHP branchs gets cut, without us needing to manually maintain this.

Also note that the build against `nightly` is allowed to fail.
@jrfnl jrfnl force-pushed the feature/ghactions-show-compile-time-deprecations branch from 76b58de to 14f8798 Compare August 22, 2024 03:19
Copy link
Member

@Potherca Potherca left a comment

Choose a reason for hiding this comment

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

👍

@Potherca Potherca merged commit 026a90d into main Aug 26, 2024
100 checks passed
@Potherca Potherca deleted the feature/ghactions-show-compile-time-deprecations branch August 26, 2024 10:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants