Skip to content

Add PHP Lint

Add PHP Lint #1

Workflow file for this run

name: Tests
on:
pull_request:
branches: [main]
push:
branches: [main]
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Validate composer.json and composer.lock
working-directory: ./src
run: composer validate --strict
- name: Install PHP 8.4
uses: shivammathur/setup-php@v2
with:
php-version: '8.4'
ini-values: date.timezone='UTC'
extensions: posix, dom, curl, libxml, mbstring, zip, pcntl, pdo, pgsql, pdo_pgsql, bcmath, soap, intl, gd, exif, iconv, imagick
coverage: pcov
tools: composer:v2
- name: Add PHP symlink for php84
run: sudo ln -s /usr/bin/php /usr/bin/php84
- name: Run PHP Lint
uses: overtrue/phplint@9.5.6
# - name: Cache Composer packages
# uses: actions/cache@v3
# with:
# path: vendor
# key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
# restore-keys: |
# ${{ runner.os }}-php-
#
# - name: Install dependencies
# working-directory: ./src
# run: composer test-init
#
# - name: Static analysis
# working-directory: ./src
# run: composer qa