From 2981d9ffa657b7f38c78b36e521baf867a4341e0 Mon Sep 17 00:00:00 2001 From: Mateusz Zalewski Date: Thu, 30 Dec 2021 10:20:50 +0100 Subject: [PATCH] Extract architecture tests to separate build --- .github/workflows/application.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/.github/workflows/application.yml b/.github/workflows/application.yml index 6c3f9a818a..5b8125e3b7 100644 --- a/.github/workflows/application.yml +++ b/.github/workflows/application.yml @@ -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