Skip to content

Commit

Permalink
Check source code for syntax errors
Browse files Browse the repository at this point in the history
  • Loading branch information
szepeviktor authored and TorbenLundsgaard committed May 14, 2024
1 parent 54b8777 commit 91c2ce8
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/php-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,28 @@ on:
- synchronize

jobs:
php-syntax:
name: PHP syntax
strategy:
fail-fast: false
matrix:
php-version:
- '7.2'
- '7.3'
- '7.4'
- '8.0'
- '8.1'
- '8.2'
- '8.3'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-version }}
tools: parallel-lint
- name: Check source code for syntax errors
run: 'composer exec --no-interaction -- parallel-lint *.php inc/ src/'
php-lint:
name: PHPStan
runs-on: ubuntu-latest
Expand Down

0 comments on commit 91c2ce8

Please sign in to comment.