File: coding-style.yml

package info (click to toggle)
php-nette-schema 1.3.4-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 360 kB
  • sloc: php: 932; makefile: 8
file content (31 lines) | stat: -rw-r--r-- 944 bytes parent folder | download
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
name: Coding Style

on: [push, pull_request]

jobs:
    nette_cc:
        name: Nette Code Checker
        runs-on: ubuntu-latest
        steps:
            - uses: actions/checkout@v4
            - uses: shivammathur/setup-php@v2
              with:
                  php-version: 8.3
                  coverage: none

            - run: composer create-project nette/code-checker temp/code-checker ^3 --no-progress
            - run: php temp/code-checker/code-checker --strict-types --ignore "tests/*/fixtures"


    nette_cs:
        name: Nette Coding Standard
        runs-on: ubuntu-latest
        steps:
            - uses: actions/checkout@v4
            - uses: shivammathur/setup-php@v2
              with:
                  php-version: 8.3
                  coverage: none

            - run: composer create-project nette/coding-standard temp/coding-standard ^3 --no-progress
            - run: php temp/coding-standard/ecs check