Merge pull request #12376 from concretecms/dependabot/npm_and_yarn/bu… #16
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Check Syntax | |
on: | |
pull_request: | |
push: | |
jobs: | |
check-syntax: | |
name: PHP ${{ matrix.php-version }} | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
php-version: | |
# This list should include at least the value of Concrete\Core\Install\Preconditions\PhpVersion::MINIMUM_PHP_VERSION | |
- "7.3" | |
- "8.4" | |
steps: | |
- | |
name: Checkout | |
uses: actions/checkout@v4 | |
- | |
name: Install PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ matrix.php-version }} | |
extensions: opcache | |
coverage: none | |
tools: none | |
- | |
name: Check syntax | |
uses: mlocati/check-php-syntax@v1 | |
with: | |
directory: concrete | |
include: | | |
bin/concrete | |
bin/concrete5 | |
fail-on-warnings: true |