diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml new file mode 100644 index 000000000..870804a52 --- /dev/null +++ b/.github/workflows/lint.yml @@ -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