From 395c66ab9c81c5c63c8a5057788032dd36009169 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20M=C3=BCller?= Date: Sat, 9 Sep 2023 13:41:29 +0200 Subject: [PATCH] update workflow --- .github/workflows/continuous-integration.yml | 39 +++++++++++++++----- 1 file changed, 29 insertions(+), 10 deletions(-) diff --git a/.github/workflows/continuous-integration.yml b/.github/workflows/continuous-integration.yml index fc6bba6..b979b6c 100644 --- a/.github/workflows/continuous-integration.yml +++ b/.github/workflows/continuous-integration.yml @@ -16,21 +16,41 @@ concurrency: cancel-in-progress: true jobs: - ci: - name: "Run CI" + validate: + name: "Validate Project" - uses: "mimmi20/mimmi20/.github/workflows/ci.yml@main" + uses: "mimmi20/ci/.github/workflows/validate.yml@master" + with: + extensions: "curl, iconv, mbstring, intl, dom, simplexml, tokenizer, xml, xmlwriter" + ini-values: "opcache.enable=1, opcache.fast_shutdown=0, zend.assertions=1, assert.exception=On, intl.default_locale=de, intl.use_exceptions=1, zend.exception_ignore_args=0" + composer-options: "--optimize-autoloader --prefer-dist --prefer-stable -v" + skip-phplint: false + + install: + name: "Install Project" + + needs: "validate" + + uses: "mimmi20/ci/.github/workflows/install.yml@master" with: extensions: "curl, iconv, mbstring, intl, dom, simplexml, tokenizer, xml, xmlwriter" ini-values: "opcache.enable=1, opcache.fast_shutdown=0, zend.assertions=1, assert.exception=On, intl.default_locale=de, intl.use_exceptions=1, zend.exception_ignore_args=0" composer-options: "--optimize-autoloader --prefer-dist --prefer-stable -v" composer-outdated-option: "" + + analytics: + name: "Project Analysis" + + needs: "install" + + uses: "mimmi20/ci/.github/workflows/analytics.yml@master" + with: + extensions: "curl, iconv, mbstring, intl, dom, simplexml, tokenizer, xml, xmlwriter" + ini-values: "opcache.enable=1, opcache.fast_shutdown=0, zend.assertions=1, assert.exception=On, intl.default_locale=de, intl.use_exceptions=1, zend.exception_ignore_args=0" + composer-options: "--optimize-autoloader --prefer-dist --prefer-stable -v" skip-phpstan: false - skip-phplint: false skip-rector: false skip-phpmd: false - secrets: - envPAT: "${{ secrets.GITHUB_TOKEN }}" check-composer: name: "Check composer dependencies" @@ -41,7 +61,7 @@ jobs: continue-on-error: false - needs: "ci" + needs: "analytics" strategy: fail-fast: false @@ -89,7 +109,7 @@ jobs: tests: name: "UnitTests with PHPUnit" - needs: "ci" + needs: "analytics" runs-on: "${{ matrix.operating-system }}" @@ -146,7 +166,7 @@ jobs: code-coverage: name: "Code Coverage with PHPUnit" - needs: "tests" + needs: "analytics" runs-on: "${{ matrix.operating-system }}" @@ -224,7 +244,6 @@ jobs: if: always() needs: - - "ci" - "tests" - "code-coverage"