Skip to content

Commit

Permalink
Add workflow to run php -l on PHP files (#173)
Browse files Browse the repository at this point in the history
  • Loading branch information
gartens authored Jun 11, 2024
1 parent 7f29ab9 commit 380ff5d
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: Lint PHP files

on: [ push, pull_request ]

jobs:
lint-files:
timeout-minutes: 10
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install PHP
run: sudo apt install -y php-cli

- name: Run linter
run: find . -name '*.php' | xargs -n1 php -l

0 comments on commit 380ff5d

Please sign in to comment.