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

Add PHP linter and PHP linting in GitHub Actions #109

Merged
merged 17 commits into from
Apr 19, 2024
Merged

Conversation

eason9487
Copy link
Member

@eason9487 eason9487 commented Apr 18, 2024

Changes proposed in this Pull Request:

Implements parts of #4

  • Add PHP linter and PHP linting in GitHub Actions
  • Fix all linting errors.

Detailed test instructions:

  1. Run composer install
  2. Run npm run lint:php locally to test the linter
  3. View the failed run that was intentionally left with some linting errors
  4. View the error and warning annotations with this link
  5. View the successful run
  6. View automatically fixed errors with this diff
  7. View manually fixed errors with this diff

@eason9487 eason9487 self-assigned this Apr 18, 2024
@eason9487 eason9487 requested a review from a team April 18, 2024 10:33
@eason9487 eason9487 marked this pull request as ready for review April 18, 2024 10:34
Copy link
Member

@ianlin ianlin left a comment

Choose a reason for hiding this comment

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

Thanks for adding PHP linter here. Tested locally and everything worked as expected.

runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
Copy link
Member

@ianlin ianlin Apr 19, 2024

Choose a reason for hiding this comment

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

Just curious can we use checkout@v4 (using Node.js v20 runtime)?

Copy link
Member Author

Choose a reason for hiding this comment

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

Considering the current .nvmrc is still lts/fermium (v14), I plan to update it along with the work for #108.

@eason9487 eason9487 merged commit e89cb26 into trunk Apr 19, 2024
3 checks passed
@eason9487 eason9487 deleted the dev/4-phpcs branch April 19, 2024 08:15
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