File: lint.yml

package info (click to toggle)
php-json-schema 6.6.3-1
  • links: PTS, VCS
  • area: main
  • in suites: forky
  • size: 1,388 kB
  • sloc: php: 11,300; makefile: 153; python: 28; sh: 13
file content (42 lines) | stat: -rw-r--r-- 918 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: "PHP Lint"

on:
  push:
    branches:
      - main
  pull_request:
    branches:
      - main

jobs:
  lint:
    name: "Lint"

    runs-on: ubuntu-latest

    strategy:
      matrix:
        php-version:
          - "7.2"
          - "latest"

    steps:
      - name: "Checkout"
        uses: "actions/checkout@v4"

      - name: "Install PHP"
        uses: "shivammathur/setup-php@v2"
        with:
          php-version: "${{ matrix.php-version }}"
          extensions: "intl"
          ini-values: "memory_limit=-1, error_reporting=E_ALL, display_errors=On"
          coverage: "none"
          tools: parallel-lint, cs2pr

      - name: "Lint PHP files"
        run: |
          parallel-lint . --checkstyle --exclude vendor --show-deprecated | cs2pr

      - name: "Validate conforming class autoloading"
        run: |
          composer dump-autoload --no-dev --optimize --strict-psr --strict-ambiguous