Skip to content

Commit

Permalink
Lint PHP files with php latest, 7.4 and 8.4
Browse files Browse the repository at this point in the history
  • Loading branch information
ofaurax committed Apr 10, 2024
1 parent f237fbf commit 5e15b7e
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: PHP check
on:
push
jobs:

php-check-latest:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup PHP latest
uses: shivammathur/setup-php@v2
with:
php-version: latest
- name: PHP version
run: php -v
- name: PHP Lint
run: for f in *.php; do php -l $f ; done

php-check-7_4:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup PHP 7.4
uses: shivammathur/setup-php@v2
with:
php-version: 7.4
- name: PHP Lint
run: for f in *.php; do php -l $f ; done

php-check-8_4:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup PHP 8.4
uses: shivammathur/setup-php@v2
with:
php-version: 8.4
- name: PHP Lint
run: for f in *.php; do php -l $f ; done

0 comments on commit 5e15b7e

Please sign in to comment.