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
23 changes: 17 additions & 6 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,25 @@
name: CI

on: push
on:
push:
branches: [ main ]
pull_request:

jobs:
build:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v7
- name: Checking PHP syntax error
uses: overtrue/phplint@9.8

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
path: .
options: --exclude=*.log
php-version: '8.4'
coverage: none

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

- name: Checking PHP syntax error
run: composer run-script lint
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,6 @@
},
"scripts": {
"test": "phpunit",
"lint": "phplint"
"lint": "phplint src tests rector.php"
}
}