Skip to content

PHP check

PHP check #10

Workflow file for this run

name: PHP check
on:
push
jobs:
php-check:
runs-on: ubuntu-latest
steps:
- name: Env
run: uname -a
- name: Checkout
uses: actions/checkout@v4
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
# Version of PHP
php-version: latest # default is latest
# Comma-separated list of file extensions to lint
extensions: php # optional, default is php
- name: PHP Lint
run: for f in *.php; do php -l $f ; done