forked from easyrdf/easyrdf
-
Notifications
You must be signed in to change notification settings - Fork 6
38 lines (29 loc) · 1.07 KB
/
CodingStyles.yml
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
name: "Coding Styles"
on: [push, pull_request]
jobs:
tests:
name: Coding Styles
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
php:
- 8.0
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
coverage: xdebug
ini-values: memory_limit=1G
tools: cs2pr
- name: Validate Composer files
run: composer validate --no-check-all --strict
- name: Install Composer dependencies
run: composer install --no-progress --no-suggest --prefer-dist --optimize-autoloader
- name: Coding styles
run: php vendor/bin/php-cs-fixer fix --verbose --dry-run --format=checkstyle | cs2pr
- name: Static Analysis
run: vendor/bin/phpstan analyse