Skip to content

FIX: again2

FIX: again2 #9

Workflow file for this run

name: PHP Lint Check
on:
push:
branches: [ "unittest" ]
pull_request:
branches: [ "unittest" ]
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install PHP
uses: shivammathur/setup-php@v2
with:
php-version: '7.4'
extensions: mbstring, xml, ctype, iconv, intl, pdo, pdo_mysql, dom, filter, gd, json, libxml
coverage: xdebug
- name: PHP lint
run: |
lint_errors=$(find app kero/sine -type f -name "*.php" -exec php -l {} \; 2>&1)
echo "$lint_errors"
if grep -q "Parse error" <<< "$lint_errors"; then
exit 1
fi
- name: Install dependencies
run: |
composer install --no-ansi --no-interaction --no-progress --no-scripts --no-suggest
composer require -W --dev phpunit/phpunit
- name: List vendor directory
run: ls -la vendor/bin/
- name: Run PHPUnit tests
run: php vendor/bin/phpunit --configuration phpunit.xml --testsuite Dev --debug