From cdaaebe01310988d99715c02064da8c11a30ebb8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20M=C3=BCller?= <mimmi20@live.de> Date: Wed, 6 Sep 2023 17:10:57 +0200 Subject: [PATCH] update workflow --- .github/workflows/continuous-integration.yml | 41 ++++++++++++++------ 1 file changed, 29 insertions(+), 12 deletions(-) diff --git a/.github/workflows/continuous-integration.yml b/.github/workflows/continuous-integration.yml index e463f17..506ef7d 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 }}" @@ -223,10 +243,7 @@ jobs: if: always() - needs: - - "ci" - - "tests" - - "code-coverage" + needs: "code-coverage" steps: - name: Successful run