Skip to content

Commit

Permalink
Check for php latest, 7.4 and 8.4
Browse files Browse the repository at this point in the history
  • Loading branch information
ofaurax authored Apr 10, 2024
1 parent 6ebbf8e commit 1c319f9
Showing 1 changed file with 32 additions and 13 deletions.
45 changes: 32 additions & 13 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,42 @@ name: PHP check
on:
push
jobs:
php-check:

php-check-latest:
runs-on: ubuntu-latest
steps:
- name: Env
run: uname -a

- name: Checkout
uses: actions/checkout@v4

- name: Setup PHP
uses: actions/checkout@v4
- name: Setup PHP latest
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

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 1c319f9

Please sign in to comment.