forked from jgrygierek/BatchEntityImportBundle
-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (40 loc) · 1.47 KB
/
code_style.yml
File metadata and controls
48 lines (40 loc) · 1.47 KB
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
44
45
46
47
48
name: Code Style
on: [ push ]
jobs:
php-cs-fixer:
name: PHP CS Fixer
runs-on: ubuntu-latest
steps:
- name: Prepare github actions
uses: actions/checkout@v3
- name: Run PHP CS Fixer
uses: docker://oskarstark/php-cs-fixer-ga
with:
args: --diff --dry-run
php-stan:
name: PHPStan
runs-on: ubuntu-latest
steps:
- name: Prepare github actions
uses: actions/checkout@v3
- name: Get composer cache directory
id: composer-cache
run: echo "::set-output name=dir::$(composer config cache-files-dir)"
- name: Cache composer dependencies
uses: actions/cache@v3
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: ${{ runner.os }}-composer-
- name: Run composer
uses: php-actions/composer@v6
with:
php_version: '8.1'
php_extensions: gd zip
memory_limit: -1
args: --no-progress --optimize-autoloader
- name: Run PHPStan
uses: php-actions/phpstan@v3
with:
path: src/
memory_limit: -1