Skip to content

Commit

Permalink
Lint sources on PHP 8.2 via Github Action (#4018)
Browse files Browse the repository at this point in the history
* Lint sources on PHP 8.2 via Github Action (#4016)

* Update lint.yml

* Update lint.yml

---------

Co-authored-by: Anton Medvedev <[email protected]>
  • Loading branch information
staabm and antonmedv authored Feb 10, 2025
1 parent ca82aeb commit bd1b91d
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: lint

on:
push:
branches: [ master ]
pull_request:
types: [opened, synchronize, reopened, ready_for_review]

jobs:
lint:
runs-on: ubuntu-latest
strategy:
matrix:
php-versions: [ '8.2' ]
steps:
- uses: actions/checkout@v4

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
tools: cs2pr, parallel-lint

- name: Lint sources
run: composer exec --no-interaction -- parallel-lint bin/ contrib/ recipe/ src/ tests/ --checkstyle | cs2pr

0 comments on commit bd1b91d

Please sign in to comment.