-
Notifications
You must be signed in to change notification settings - Fork 299
43 lines (34 loc) · 1.12 KB
/
code_checks.yaml
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
39
40
41
42
43
name: Code Checks
on:
pull_request: null
push:
branches:
- master
jobs:
code_checks:
strategy:
matrix:
actions:
-
name: 'PHPStan'
run: composer phpstan
-
name: 'Coding Standard'
run: composer check-cs
-
name: 'Rector'
run: vendor/bin/rector process --dry-run --ansi
-
name: 'Commented PHP Code'
run: vendor/bin/easy-ci check-commented-code src tests --line-limit 3
name: ${{ matrix.actions.name }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: shivammathur/setup-php@v2
with:
php-version: 8.0
extensions: pdo_sqlite, pdo_mysql, pdo_pgsql
coverage: none
- run: composer install --no-progress
- run: ${{ matrix.actions.run }}