Skip to content

Commit 98e9cac

Browse files
committed
ci: lint container
1 parent 99314bf commit 98e9cac

File tree

1 file changed

+36
-1
lines changed

1 file changed

+36
-1
lines changed

.github/workflows/ci.yml

Lines changed: 36 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,11 +49,46 @@ jobs:
4949
php-version: ${{ matrix.php }}
5050
extensions: intl, bcmath, curl, openssl, mbstring, mongodb
5151
ini-values: memory_limit=-1
52-
tools: pecl, composer, php-cs-fixer
52+
tools: php-cs-fixer
5353
coverage: none
5454
- name: Run PHP-CS-Fixer fix
5555
run: php-cs-fixer fix --dry-run --diff --ansi
5656

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+
5792
phpstan:
5893
name: PHPStan (PHP ${{ matrix.php }})
5994
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)