mirror of
https://github.com/dg/dibi.git
synced 2025-08-11 16:44:30 +02:00
32 lines
958 B
YAML
32 lines
958 B
YAML
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 --no-progress --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
|