Skip to content

Commit

Permalink
Update and rename php-lint.yml to lint-php.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
beqqrry-aws authored Jun 20, 2024
1 parent 9790fb9 commit eb85858
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: "PHP Linter"

on:
on: # yamllint disable-line rule:truthy
pull_request:
paths:
- "**.php"
Expand All @@ -12,7 +12,8 @@ jobs:
name: "PHP Linter"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Checkout repository
uses: actions/checkout@v2
with:
fetch-depth: 0

Expand All @@ -28,7 +29,8 @@ jobs:
curl -OL https://squizlabs.github.io/PHP_CodeSniffer/phpcs.phar
php phpcs.phar --version
- uses: thenabeel/action-phpcs@v8
- name: Run PHPCS
uses: thenabeel/action-phpcs@v8
if: steps.changed-files.outputs.any_changed == 'true'
with:
files: "**.php"
Expand Down

0 comments on commit eb85858

Please sign in to comment.