@@ -49,11 +49,46 @@ jobs:
49
49
php-version : ${{ matrix.php }}
50
50
extensions : intl, bcmath, curl, openssl, mbstring, mongodb
51
51
ini-values : memory_limit=-1
52
- tools : pecl, composer, php-cs-fixer
52
+ tools : php-cs-fixer
53
53
coverage : none
54
54
- name : Run PHP-CS-Fixer fix
55
55
run : php-cs-fixer fix --dry-run --diff --ansi
56
56
57
+ lint-container :
58
+ name : Lint Container
59
+ runs-on : ubuntu-latest
60
+ timeout-minutes : 20
61
+ strategy :
62
+ matrix :
63
+ php :
64
+ - ' 8.3'
65
+ fail-fast : false
66
+ steps :
67
+ - name : Checkout
68
+ uses : actions/checkout@v4
69
+ - name : Setup PHP
70
+ uses : shivammathur/setup-php@v2
71
+ with :
72
+ php-version : ${{ matrix.php }}
73
+ extensions : intl, bcmath, curl, openssl, mbstring, mongodb
74
+ ini-values : memory_limit=-1
75
+ tools : composer
76
+ coverage : none
77
+ - name : Get composer cache directory
78
+ id : composercache
79
+ run : echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
80
+ - name : Cache dependencies
81
+ uses : actions/cache@v4
82
+ with :
83
+ path : ${{ steps.composercache.outputs.dir }}
84
+ key : ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }}
85
+ restore-keys : ${{ runner.os }}-composer-
86
+ - name : Update project dependencies
87
+ run : |
88
+ composer update --no-interaction --no-progress --ansi
89
+ - name : Run container lint
90
+ run : tests/Fixtures/app/console lint:container
91
+
57
92
phpstan :
58
93
name : PHPStan (PHP ${{ matrix.php }})
59
94
runs-on : ubuntu-latest
0 commit comments