PHP check #10
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: 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 | |