Skip to content

Commit

Permalink
2 jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
ofaurax authored Apr 10, 2024
1 parent cbfe01c commit 475ba30
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: PHP check
on:
push
jobs:
php-check:
setup-env:
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand All @@ -11,14 +11,17 @@ jobs:
- name: Env
run: uname -a

php-check:
runs-on: ubuntu-latest
steps:
- 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
file-extensions: php # optional, default is php
extensions: php # optional, default is php

- name: PHP Lint
run: for f in *.php; do php -l ; done
run: for f in *.php; do php -l $f ; done

0 comments on commit 475ba30

Please sign in to comment.