Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
50 changes: 50 additions & 0 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: Lint Check

on:
pull_request:
branches: [main]

permissions:
contents: read
issues: write
pull-requests: write

jobs:
lint:
runs-on: ubuntu-latest
name: Code Linting

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.2'
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv
coverage: none

- name: Cache Composer dependencies
uses: actions/cache@v3
with:
path: ~/.composer/cache/files
key: dependencies-composer-${{ hashFiles('composer.json') }}

- name: Install Composer dependencies
run: composer install --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist

- name: Run Laravel Pint
run: ./vendor/bin/pint --test --verbose

- name: Add PR comment on failure
if: failure()
uses: actions/github-script@v7
with:
script: |
github.rest.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: '**Code formatting issues detected**\n\nPlease run `./vendor/bin/pint` to fix formatting issues before merging.'
})
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,10 @@ jobs:
body=$(echo $response | sed -e 's/HTTPSTATUS\:.*//g')

if [ "$http_code" -eq 200 ] || [ "$http_code" -eq 202 ]; then
echo "Package submitted to Packagist successfully!"
echo "Package submitted to Packagist successfully!"
echo "HTTP Status: $http_code"
else
echo "Failed to submit package to Packagist"
echo "Failed to submit package to Packagist"
echo "HTTP Status: $http_code"
echo "Response: $body"
exit 1
Expand Down
8 changes: 2 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -475,8 +475,8 @@ $user = RegisterUser::run($registrationData);

## Requirements

- PHP 8.1 or higher
- Laravel 9.0 or higher
- PHP 8.2 or higher
- Laravel 12.0 or higher

## Contributing

Expand All @@ -489,7 +489,3 @@ This package is open-sourced software licensed under the [MIT license](LICENSE).
## Support

If you discover any security vulnerabilities or bugs, please create an issue on GitHub.

---

**LumoSolutions** - Making Laravel development more actionable.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"php": ">=8.2"
},
"require-dev": {
"laravel/pint": "^1.0"
"laravel/pint": "^1.22"
},
"extra": {
"laravel": {
Expand Down