Extract architecture tests to separate build

This commit is contained in:
Mateusz Zalewski 2021-12-30 10:20:50 +01:00
parent 70ff012598
commit 2981d9ffa6
No known key found for this signature in database
GPG key ID: 9BECA0BB71612E52

View file

@ -109,6 +109,37 @@ jobs:
run: vendor/bin/phpstan analyse
if: always() && steps.end-of-setup.outcome == 'success'
architecture-tests:
runs-on: ubuntu-latest
name: "Architecture tests (PHPArkitect)"
timeout-minutes: 10
strategy:
fail-fast: false
matrix:
php: ["7.4", "8.0"]
steps:
-
uses: actions/checkout@v2
-
name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: "${{ matrix.php }}"
ini-values: date.timezone=Europe/Warsaw, opcache.enable=1, opcache.enable_cli=1, opcache.memory_consumption=256, opcache.max_accelerated_files=32531, opcache.interned_strings_buffer=8, opcache.validate_timestamps=0, opcache.save_comments=1, opcache.fast_shutdown=0
extensions: intl, gd, opcache, mysql, pdo_mysql, :xdebug
tools: symfony
coverage: none
-
name: Install PHP dependencies
run: composer update --no-interaction --no-scripts
id: end-of-setup
-
name: Run PHPArkitect
run: vendor/phparkitect/phparkitect/bin-stub/phparkitect check