Skip to content

Commit

Permalink
Check PHP syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
mlocati committed Aug 1, 2024
1 parent 4e7b43c commit d086c91
Showing 1 changed file with 25 additions and 1 deletion.
26 changes: 25 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,31 @@ on:
- main

jobs:
phpcs:

php-syntax:
name: PHP Syntax
runs-on: ubuntu-latest
steps:
-
name: Setup PHP
uses: shivammathur/setup-php@v2
with:
# This should be the value of the minimum PHP version as specified in composer.json
php-version: 5.3
extensions: opcache
coverage: none
tools: none
-
name: Checkout
uses: actions/checkout@v4
-
name: Check syntax
uses: mlocati/check-php-syntax@main
with:
exclude: |
.php-cs-fixer.php
php-cs:
name: PHP Coding Style
runs-on: ubuntu-latest
steps:
Expand Down

0 comments on commit d086c91

Please sign in to comment.