|
1 | | -name: Run PHPCS, PHPLint and Psalm |
| 1 | +name: Run PHPCS, PHPLint, and Psalm |
2 | 2 |
|
3 | 3 | on: [pull_request, push] |
4 | 4 |
|
5 | 5 | jobs: |
6 | | - test: |
7 | | - name: Run integration scripts |
| 6 | + PHPCS: |
8 | 7 | runs-on: ubuntu-latest |
9 | | - |
10 | 8 | steps: |
11 | 9 | - name: Checkout code |
12 | | - uses: actions/checkout@v2 |
| 10 | + uses: actions/checkout@v4 |
13 | 11 |
|
14 | 12 | - name: Install Composer dependencies |
15 | | - uses: ramsey/composer-install@v1 |
| 13 | + uses: ramsey/composer-install@v2 |
16 | 14 |
|
17 | 15 | - name: Show PHPCS sniffs |
18 | 16 | run: ./vendor/bin/phpcs -i |
19 | 17 |
|
20 | | - - name: Show version info |
21 | | - run: | |
22 | | - php --version |
23 | | - ./vendor/bin/phpcs --version |
24 | | - ./vendor/bin/phplint --version |
25 | | - ./vendor/bin/psalm --version |
| 18 | + - name: Show PHPCS version |
| 19 | + run: ./vendor/bin/phpcs --version |
| 20 | + |
26 | 21 | - name: Run PHP_CodeSniffer |
27 | 22 | run: composer phpcs |
28 | 23 |
|
| 24 | + PHPLint: |
| 25 | + runs-on: ubuntu-latest |
| 26 | + steps: |
| 27 | + - name: Checkout code |
| 28 | + uses: actions/checkout@v4 |
| 29 | + |
| 30 | + - name: Install Composer dependencies |
| 31 | + uses: ramsey/composer-install@v2 |
| 32 | + |
| 33 | + - name: Show PHPLint version info |
| 34 | + run: ./vendor/bin/phplint --version |
| 35 | + |
29 | 36 | - name: Run PHPLint |
30 | 37 | run: composer phplint |
31 | 38 |
|
| 39 | + Psalm: |
| 40 | + runs-on: ubuntu-latest |
| 41 | + steps: |
| 42 | + - name: Checkout code |
| 43 | + uses: actions/checkout@v4 |
| 44 | + |
| 45 | + - name: Install Composer dependencies |
| 46 | + uses: ramsey/composer-install@v2 |
| 47 | + |
| 48 | + - name: Show version info |
| 49 | + run: | |
| 50 | + php --version |
| 51 | + ./vendor/bin/psalm --version |
| 52 | +
|
32 | 53 | - name: Run Psalm |
33 | 54 | run: composer psalm |
0 commit comments