File: coding-standards.yml

package info (click to toggle)
php-mock-phpunit 2.10.0-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 236 kB
  • sloc: php: 841; makefile: 19; sh: 7; xml: 7
file content (26 lines) | stat: -rw-r--r-- 598 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
name: "Check Coding Standards"

on:
  pull_request:

jobs:
  coding-standards:
    name: "Check Coding Standards"

    runs-on: ubuntu-latest

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

      - name: Setup PHP
        uses: shivammathur/setup-php@v2
        with:
          php-version: "7.4"
          tools: composer:v2, cs2pr

      - name: Install dependencies
        run: composer require squizlabs/php_codesniffer --no-interaction --no-progress

      - name: "Run phpcs"
        run: vendor/bin/phpcs -q --standard=PSR2 classes/ tests/ --report=checkstyle | cs2pr